Re: Name of user's language, in English
On Jul 3, 1:14 pm, "Ole Nielsby"
Pascal J. Bourguignon <p...@informatimago.com> wrote:
In anycase, these it's iso639 language codes
James Kanze <james.ka...@gmail.com> wrote:
You can do something like:
std::locale( "" ).name()
But [...] with g++, all it does is core dump anyway, at
least under Solaris.
Thanks for these hints. It seems I'll have to do without it.
(But I really think it belongs in a standard - perhaps in the
Boost locale library. It may be technically ill-defined by the
present state of things, but to the user, it's very
Is it? What's my "language", when I'm a user? On my Windows
machine at home, Windows itself displays the messages in French,
but the US keyboard driver is usually active, and different
programs display in different languages, depending on what I'm
doing at the moment. On the Unix machines, my LC_ variables are
mixed, and also depend on the system (since different systems
have different installed locales). What's my son's language,
when he's playing an online game with some of the participants
in Paris, and others in Frankfurt?
And of course, that C++ doesn't control everything; typically,
the information simply isn't available for the C++ library to
James Kanze (GABI Software) email:firstname.lastname@example.org
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34