emacs-pretest-bug
[Top][All Lists]
Advanced

[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: Thu, 21 Dec 2006 23:34:39 +0200

> Date: Thu, 21 Dec 2006 22:07:56 +0100
> From: Lennart Borgman <address@hidden>
> CC: Jason Rumney <address@hidden>
> >
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_4ppg.asp
> >  
> >
> 
> I think this is what should be used (as I wrote to Jason earlier)

This simply means that you want us to use LOCALE_SYSTEM_DEFAULT
instead of LOCALE_USER_DEFAULT in the call to GetLocaleInfo I cited in
my message.

I'm not sure what you suggest is correct, though.  The system locale
is fixed at installation time, while the user locale can be changed by
the user.  I'd be annoyed if Emacs didn't obey my locale selection.

Here, try the program below, and then look up the languages it returns
in the table here:

   
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_61df.asp

Then tell me whether the system language is what you want.

On my system, it returns Hebrew as the system default, and US English
as the user default, which is exactly how I configured this system.
So Emacs does the right thing for me.

  #include <windows.h>
  #include <stdio.h>

  int main (void)
  {
    LANGID lsys = GetSystemDefaultLangID ();
    LANGID lusr = GetUserDefaultLangID ();

    printf ("SYS: 0x%x, USR: 0x%x\n", lsys, lusr);

    return 0;
  }

And please keep this discussion on the mailing list.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]