Wine and locales

Shachar Shemesh wine-devel at shemesh.biz
Wed Jul 28 03:50:36 CDT 2004


In an attempt to get away from a possibly confusing subject line, and to 
converge on an agreed behavior, here is an attempt to clear the desired 
locale behavior Wine should have. Dmitry (and anyone else), please 
comment on this table where you think there are errors in it, and say 
what should be there.

In the "Unix setting", I'm always assuming that LC_ALL overrides 
whatever is written in that column, and that LANG is used if neither 
LC_ALL nor the column are set.

Concept
	Windows setting
	Unix setting
Codepage
	System locale
GetSystemDefaultLCID queries
Registry setting (or NtSetDefaultLocale) changes
	LC_CTYPE
Collation (string sort order)
	User Locale
GetUserDefaultLCID queries user locale, registry sets it.
	LC_COLLATE
Date format
Time format
Measurement units
Monetary format
etc.
	Defaults to User Locale. Registry overrides specific values
Various functions get the information
SetLocaleInfo changes it (for the running process?)
	LC_TIME
LC_NUMERIC
LC_MONETARY
etc.
Interface language
	Prior to Windows 2000 - thread locale
Since Windows 2000 - Set at installation time
Special "MUI" versions - changeable by registry
GetUserDefaultUILanguage queries
	LC_MESSAGES
LANGUAGE


The thread locale's task in this is not clear. http://tinyurl.com/46mb5 
contains language that suggests that under 2000 and XP, this value is 
simply ignored.

If Dmitry, or anyone else, have any corrections/additions to this table, 
please respond to this email.

             Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20040728/58ee80e2/attachment.html


More information about the wine-devel mailing list