21 Jan
2016
21 Jan
'16
12:02 a.m.
Using Boost.Locale from Boost 1.60.0 (installed via homebrew, so it uses icu) on Mac OS X 10.11.2, I seem to be getting unexpected behavior for some of the boost::format number formatting. A short example program #include <boost/locale.hpp> int main(int argc, char** argv) { boost::locale::format fmt("{1,number} should be 1,25."); fmt % 1.25; boost::locale::generator gen; std::cout << fmt.str(gen("fr-fr.UTF-8")) << std::endl; return 0; } That produces 1,25 on Linux, and 1.25 on Windows (using mingw-w64) and Mac. Any idea why they'd represent it differently?