Use raw_convert instead of boost::lexical_cast as it seems
authorCarl Hetherington <cth@carlh.net>
Sun, 11 May 2014 22:59:19 +0000 (23:59 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 11 May 2014 22:59:19 +0000 (23:59 +0100)
commit4de8f0118e1baf31cf4c859881dfbf39014b566f
tree91be88947914d05ff942cbefff6c71eab187cc3c
parent3390da35584709ea0626ec1fefd3bf5d797bcc00
Use raw_convert instead of boost::lexical_cast as it seems
that lexical_cast will sometimes use a thousands separator
(i.e. it will convert 1234 to a string 1,234).  It appears
not to be possible safely to turn this off (you have to set
the global locale).  Instead, raw_convert uses a stringstream
which you can imbue() with std::locale::classic() to turn off
the locale-specific behaviour.
12 files changed:
src/asset.cc
src/cpl.cc
src/dcp.cc
src/dcp_time.cc
src/mono_picture_asset.cc
src/mono_picture_asset_writer.cc
src/mxf_asset.cc
src/parse/subtitle.cc
src/picture_asset.cc
src/sound_asset.cc
src/subtitle_asset.cc
src/types.cc