Boost logo

Boost :

Subject: Re: [boost] [Locale] Static locale initialisation
From: Artyom (artyomtnk_at_[hidden])
Date: 2010-04-05 03:37:04


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk