[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: National Language Support Functions
From: |
Eli Zaretskii |
Subject: |
Re: National Language Support Functions |
Date: |
Fri, 22 Dec 2006 14:28:04 +0200 |
> Date: Fri, 22 Dec 2006 12:24:43 +0100
> From: LENNART BORGMAN <address@hidden>
> Cc: Eli Zaretskii <address@hidden>
>
> From: Jason Rumney <address@hidden>
> Date: Friday, December 22, 2006 11:48 am
> Subject: Re: National Language Support Functions
>
> > Lennart Borgman wrote: I searched a bit to find out again how to
> > test this. It turns out to be a bit complicated if one wants to
> > support different versions of Windows. I suggest that we only
> > support later versions and then use GetUserDefaultUILanguage and
> > dito System variant. Here is some code to test:
> > >
> > So did you actually test it?
> >
> > What were your results?
>
> On the pc where I first noticed the problem I get:
>
> LangID = SYS: 0x41d, USR: 0x41d
> LCID = SYS: 0x41d, USR: 0x41d
> GetUserDefaultUILanguage() = 0409
> GetSystemDefaultUILanguage = 0409
>
> The last two lines is what I expected. This was the pc where I get the
> tutorial in Swedish. I think it would be very good if we fixed it. I guess
> the code in Emacs also can serve as an example for other developers trying to
> make the same thing.
>
> With LangID and LCID it seems more complicated probably because there are
> many ways to set up the different parts of the international and regional
> settings on a certain w32 pc.
>
> I will send more output later today. The last two lines always shows the
> right thing, but the output from the first two gives mixed results.
On my system, I get this from your program:
LangID = SYS: 0x40d, USR: 0x409
LCID = SYS: 0x40d, USR: 0x409
GetUserDefaultUILanguage() = 0409
GetSystemDefaultUILanguage = 0409
This is Windows XP SP2, with the following Regional Settings:
. In the Regional Options tab:
. In "Standard and formats": English (United States)
. In "Location": Israel
. In the Languages tab:
. Clicking on Details shows:
. In the Settings tab:
. Default input language: English (United States) - US
. In the Advanced tab:
. Every check box is unchecked
. In the Advanced tab:
. Language for non-Unicode programs: Hebrew
- Re: National Language Support Functions, (continued)
- Re: National Language Support Functions, Jason Rumney, 2006/12/29
- Re: National Language Support Functions, Lennart Borgman (gmail), 2006/12/29
- Re: National Language Support Functions, Jason Rumney, 2006/12/29
- Re: National Language Support Functions, Lennart Borgman (gmail), 2006/12/29
- Re: National Language Support Functions, Juanma Barranquero, 2006/12/29
- Re: National Language Support Functions, Lennart Borgman, 2006/12/29
- Re: National Language Support Functions, Juanma Barranquero, 2006/12/29
Re: National Language Support Functions, Eli Zaretskii, 2006/12/22
Re: National Language Support Functions,
Eli Zaretskii <=