
18 Apr
2011
18 Apr
'11
12:32 p.m.
Yes, basically if you want to do it fully for standard library and boost:
std::locale::global(loc); std::cout.imbue(loc); std::cin.imbue(loc); std::cerr.imbue(loc); std::clog.imbue(loc);
std::wcout.imbue(loc); std::wcin.imbue(loc); std::wcerr.imbue(loc); std::wclog.imbue(loc);
// this is for boost filesystem boost::filesystem::path::imbue(loc);
Thanks for this confirmation.
This seems such an obviously attractive pit, I am sure Noah and I won't be the last to fall in it ;-)
I think Boost.Locale docs would be a good place to remind users of locale of its existence, including a reference to 27.4.2.3/4 of C++03.
It will be added to the tutorial Artyom