From: Bruno Coudoin <bruno.coudoin@fr...> - 2004-05-10 22:33:28
In my application (gcompris), I use the current locale name to extract
message strings from XML data files. It can be seen as doing the same
job as what gettext does.
On Windows, setlocale returns windows specific string like french_french
instead of fr_FR.
It exists a function in gettext (coded by Tor) that makes the conversion
and returns a Unix locale name. I have not found it being part of the
In order to get back on my feet, I imported the code in localename.c in
my code and it works fine.
Now, the question is, does it really make sense in mingw to return
windows specific code. Perhaps others have the same issue if they need
to deal with localname on their own.
Could we change gettext so that setlocale would always return the unix