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

Gert van den Berg wine-devel at mohag.net
Wed Dec 2 13:22:35 CST 2009

On Wed, Dec 2, 2009 at 18:05, Ken Thomases <ken at codeweavers.com> wrote:
> Are you using Terminal.app or some other terminal application?  If
> Terminal.app, have you turned off the "Set LANG environment variable on
> startup" setting in preferences?  (That's the name on Leopard.  If I recall,
> that setting is slightly different in Snow Leopard: "Set locale environment
> variables on startup" or something like that.)
I'm using Terminal.app using default settings (AFAIK, except for
colors). "Set locale variables at startup" is enabled.

I don't see settings for en_ZA* in /usr/share/locale (af_ZA does
exist, but if my applications turn Afrikaans I'll go insane ;-) ) (And
OS X does not have a language settign for Afrikaans)

> Actually, I think that Wine should respect the LC_* variables if they are
> set.  So, the precedence order would be LC_ALL > LC_* > Mac OS X System
> Preferences > LANG.

As far as I can figure out, no LC_* variable, except LC_ALL specific
the actual locale? They only determine individual settings, which
overwrites the default for the locale, as set by LANG? (Not sure if it
effectively means set everything to LANG's locale, overwrite
individual settings from LC_* if they are defined)

> If one of the LC_* variables are set, that expresses user intent (because
> those variables are not set by Terminal.app automatically).  Also, it is
> useful to allow the user to override the System Preferences on a
> category-by-category basis.

Mine gets set to C / UTF-8(for LC_CTYPE) of some reason...


More information about the wine-devel mailing list