
5 Apr
2010
5 Apr
'10
7:37 a.m.
Hi,
generator gen; gen.add_messages_path("C:/My/Path"); gen.add_messages_domain("swish"); std::locale::global(gen("")); // default locale
Small note, using *system* default locale gen("") in testing procedures is very error prone because it depends on current setup of the OS the program is running on. So I would recommend to define locale explicitly like: std::locale::global(gen("en_US.UTF-8")); Artyom