[Bf-committers] Windows and i18n
montagne29 at wanadoo.fr
Thu Oct 4 16:32:31 CEST 2012
It would be nice if Windows builders here could test that very small
patch: http://www.pasteall.org/35904/diff . It's a strip-down version of
a simplification of our i18n code I’m working on.
Currently, we use the "Windows" locales under that OS, which makes our
code ugly and a pita to maintain (add new languages...). E.g. fr_FR must
be French_France under Windows.
However, looking at gettext code, I found in
gettext-runtime/intl/setlocale.c an (exported) function that mimics
standard setlocale one, but does all the dirty translation work between
usual UNIX locales and Windows' ones. So I made a test on my (very
seldom used) Win7 64bit box, using VC2008 express (i.e. 32bit only) and
the patch linked above, and found everything seemed to work nicely.
But I’m not sure at all this will be the case with different Windows
builds (e.g. under XP, or using free mingw compiler, etc.) - gettext
code is bit hard to follow and see whether a given func is
compiled/exported for a given platform. :/ Hence I’d very much
appreciate if Windows builders here could make some tests, before I
commit that (and break everything). ;)
More information about the Bf-committers