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
This commit is contained in:
Simon Detheridge 2015-03-26 19:47:20 +00:00
parent 3d206c1d22
commit b5b660e2a0

View File

@ -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())