Boost logo

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 always yields "*".

boost::locale::generator gen;
std::locale loc = gen("en_US");
std::cout <<;

Whereas using the std::locale constructor with const char * yields the proper
std::locale loc("en_US");
std::cout <<;

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,


  * Website: - for summer is a state of sound
  * SoundCloud:
  * Youtube:
  * GitHub:
  * Twitter:
I thought love was just a tingling of the skin <3
(Britney Spears)

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at