<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-8-I"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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.<br>
<br>
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.<br>
<br>
<table border="1" cellpadding="2" cellspacing="2" width="100%">
  <tbody>
    <tr>
      <td valign="top">Concept<br>
      </td>
      <td valign="top">Windows setting<br>
      </td>
      <td valign="top">Unix setting<br>
      </td>
    </tr>
    <tr>
      <td valign="top">Codepage<br>
      </td>
      <td valign="top">System locale<br>
GetSystemDefaultLCID queries<br>
Registry setting (or NtSetDefaultLocale) changes<br>
      </td>
      <td valign="top">LC_CTYPE<br>
      </td>
    </tr>
    <tr>
      <td valign="top">Collation (string sort order)<br>
      </td>
      <td valign="top">User Locale<br>
GetUserDefaultLCID queries user locale, registry sets it.<br>
      </td>
      <td valign="top">LC_COLLATE<br>
      </td>
    </tr>
    <tr>
      <td valign="top">Date format<br>
Time format<br>
Measurement units<br>
Monetary format<br>
etc.<br>
      </td>
      <td valign="top">Defaults to User Locale. Registry overrides
specific values<br>
Various functions get the information<br>
SetLocaleInfo changes it (for the running process?)<br>
      </td>
      <td valign="top">LC_TIME<br>
LC_NUMERIC<br>
LC_MONETARY<br>
etc.<br>
      </td>
    </tr>
    <tr>
      <td valign="top">Interface language<br>
      </td>
      <td valign="top">Prior to Windows 2000 - thread locale<br>
Since Windows 2000 - Set at installation time<br>
Special "MUI" versions - changeable by registry<br>
GetUserDefaultUILanguage queries<br>
      </td>
      <td valign="top">LC_MESSAGES<br>
LANGUAGE<br>
      </td>
    </tr>
  </tbody>
</table>
<br>
The thread locale's task in this is not clear. <a class="moz-txt-link-freetext" href="http://tinyurl.com/46mb5">http://tinyurl.com/46mb5</a>
contains language that suggests that under 2000 and XP, this value is
simply ignored.<br>
<br>
If Dmitry, or anyone else, have any corrections/additions to this
table, please respond to this email.<br>
<br>
��� �� �� �� Shachar<br>
<pre class="moz-signature" cols="72">-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
<a class="moz-txt-link-freetext" href="http://www.lingnu.com/">http://www.lingnu.com/</a>
</pre>
</body>
</html>