Hi,
Ken Thomases wrote:
Currently, Wine uses the LC_MESSAGES category to determine sCountry and
Locale. 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_ALL LC_* from the original environment Mac OS X settings LANG
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 that 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."
Regards, Jorg Hohle