Boost logo

Boost :

Subject: [boost] [Locale] does generator("") deliver the system's default locale?
From: Michael Schinner (Michael.Schinner_at_[hidden])
Date: 2013-07-22 04:38:50


boost 1.54.0
When I use boost::locale::generator and generator("") I get different results for the decimal point than using std::locale("").
Boths methods are supposted to deliver the system's default locale.

Example:
// windows 7, de_AT
std::use_facet<std::numpunct<char> >(std::locale("")).decimal_point(); // delivers a ,
boost::locale::generator generator;
std::use_facet<std::numpunct<char> >(generator("")).decimal_point(); // delivers a .

What does generator("")) deliver? Is it wanted that a '.' is deliverd as decimal point for a german locale?

Best regards,
Michael


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