[PATCH] kernel32: Respect the LANG environment variable on Mac OS.

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Tue Dec 8 06:39:22 CST 2009


Ken Thomases wrote:

>Currently, Wine uses the LC_MESSAGES category to determine sCountry and
Good to know.

>That's not quite what I proposed.  I propose the following
[pseudo-code omitted]
>This results in the order I previously described:
>LC_* from the original environment
>Mac OS X settings
In other words, LANG is completely ignored, since there presumably won't
be a Mac without settings.

I thought that was current behaviour.  If it's not, then by all means,
please go ahead, implement this and document it.

The only point of dissension is about LANG.  What you propose is
closer to POSIX than what's current, so it's still progress, even though
it both violates POSIX and deviates from Wine's behaviour on Linux.
We can revisit the LANG issue some time later.

Hmm, thinking about your pseudo-code (not quoted here), I'm not sure
implements the "LC_ALL takes priority over LC_xyz" correctly, does it?
Also, it omits the mapping that Bruno Haible hinted at:
    "Note that these [MacOS X]
     settings are similar but not entirely equal to Unix (glibc)
     conventions (e.g. "zh-Hans" vs. "zh_CN"), therefore some mapping of
     names has to be done."

	Jorg Hohle

More information about the wine-devel mailing list