From b5b660e2a06dccc604349920a9aa3be6b39285a6 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Thu, 26 Mar 2015 19:47:20 +0000 Subject: [PATCH] Use a non-imbued stringstream to generate output filename Previously, 'os' had imbue(std::locale("")) called on it, which resulted in a localised stream that inserted commas into numbers. This is inconvenient, as it inserts commas into the output filename for frame numbers of 1,000 or higher --- Source/EmberAnimate/EmberAnimate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/EmberAnimate/EmberAnimate.cpp b/Source/EmberAnimate/EmberAnimate.cpp index 87848fc..aa01ed4 100644 --- a/Source/EmberAnimate/EmberAnimate.cpp +++ b/Source/EmberAnimate/EmberAnimate.cpp @@ -299,9 +299,9 @@ bool EmberAnimate(EmberOptions& opt) if (opt.Out().empty()) { - os.str(""); - os << inputPath << opt.Prefix() << setfill('0') << setw(5) << ftime << opt.Suffix() << "." << opt.Format(); - filename = os.str(); + ostringstream fnstream; + fnstream << inputPath << opt.Prefix() << setfill('0') << setw(5) << ftime << opt.Suffix() << "." << opt.Format(); + filename = fnstream.str(); } if (opt.WriteGenome())