
19 Apr
2011
19 Apr
'11
11:42 a.m.
It should be rather
void imbue_globally(_locale) { std::locale::global(_locale);
std::cout.imbue(_locale); std::cin.imbue(_locale); std::cerr.imbue(_locale); std::clog.imbue(_locale);
std::wcout.imbue(_locale); std::wcin.imbue(_locale); std::wcerr.imbue(_locale); std::wclog.imbue(_locale);
boost::filesystem::path::imbue(_locale);
}
Of course when you use boost.filesyste,
I disagree. For those that don't use both narrow and wide streams or Boost.Filesystem, such a function would increase binary size unnecessarily.
Of course, nobody need to link with boost.filesystem All I wanted to mention that many libraries have their own "global locale" Thats it. Artyom