|
Boost Users : |
Subject: [Boost-users] [locale] Using generator with std::locale always yields name *
From: Jeanette C. (julien_at_[hidden])
Date: 2019-04-27 11:53:11
Hey hey,
When I use the boost::locale::generator to initialise an std::locale the
std::locale.name() always yields "*".
Examples:
...
boost::locale::generator gen;
std::locale loc = gen("en_US");
std::cout << loc.name();
...
output:
*
Whereas using the std::locale constructor with const char * yields the proper
name:
...
std::locale loc("en_US");
std::cout << loc.name();
...
Output:
en_US
I am running on Arch Linux, with Boost version 1.69.0-2 (the latest version in
the official Arch package repositoy).
Is there a caveat I overlooked or is there another way around this behaviour?
One word of praise: the Boost locale library gave me the first pleasant
experience of using localisation. I love the interface and think it very
understandable even for a programmer of only mediocre level like myself. So:
thank you!
Best wishes,
Jeanette
-- * Website: http://juliencoder.de - for summer is a state of sound * SoundCloud: https://soundcloud.com/jeanette_c * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g * GitHub: https://github.com/jeanette-c * Twitter: https://twitter.com/jeanette_c_s I thought love was just a tingling of the skin <3 (Britney Spears)
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net