From: Jason Rumney <jasonr@gnu.org>
Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org
Subject: Re: National Language Support Functions
Date: Fri, 22 Dec 2006 12:35:32 +0000 [thread overview]
Message-ID: <458BD114.5050804@gnu.org> (raw)
In-Reply-To: <uy7p0ktzh.fsf@gnu.org>
Eli Zaretskii wrote:
>> Date: Fri, 22 Dec 2006 01:11:01 +0100
>> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
>> CC: jasonr@gnu.org
>>
>
> Could people who have access to MS-Windows please try these two
> programs and report the results? It is important to describe the full
> details about your regional and international settings (found in
> Control Panel) on each machine where you test this.
>
> Thanks in advance.
>
This is on the UK English version of Windows XP
LangID = SYS: 0x809, USR: 0x809 [en_GB]
LCID = SYS: 0x809, USR: 0x809 [en_GB]
GetUserDefaultUILanguage() = 0409 [en]
GetSystemDefaultUILanguage = 0409 [en]
Regional Options:
Standards and formats: English (United Kingdom)
Location: United Kingdom
Advanced:
Language for non-Unicode programs: English (United Kingdom)
As far as I can tell from documentation, GetSystemDefaultUILanguage()
and GetUserDefaultUILanguage() return a constant value that the user has
no control over on all versions of Windows ME and XP Home, and most
versions of Windows 2000, XP Professional and Server 2003. The exception
to this is certain large corporate customers who get a special version
of Windows so they can deploy a single OS image across all their
machines regardless of language. For those cases,
GetSystemDefaultUILanguage() should always return 0409 (english), as
these images are based on the English version of Windows.
GetUserDefaultUILanguage() result can be changed by the user at login,
or by the administrators in policy files.
Since the first set of values can be changed by the user on all versions
of windows, I think it is more appropriate to use these in Emacs. They
also seem to be more precise, offering the sub-language as well as the
main language.
The fact that these can get out of step, as Lennart has managed to do on
his machine, seems to be a bug in Windows, and I think it is an edge
case we shouldn't worry about. Some of Lennart's settings state that
Swedish should be used on his computer, so he should not be surprised
when programs such as Emacs take notice of that.
next prev parent reply other threads:[~2006-12-22 12:35 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <458AB581.7090303@student.lu.se>
[not found] ` <458AF7AC.5030500@student.lu.se>
[not found] ` <umz5hlyrm.fsf@gnu.org>
[not found] ` <458B2295.7010806@student.lu.se>
2006-12-22 12:14 ` National Language Support Functions Eli Zaretskii
2006-12-22 12:35 ` Jason Rumney [this message]
2006-12-22 12:57 ` Jason Rumney
2006-12-22 15:43 ` Eli Zaretskii
2006-12-22 19:51 ` Lennart Borgman
2006-12-22 16:32 ` Benjamin Riefenstahl
2006-12-22 20:07 ` Eli Zaretskii
2006-12-23 0:54 ` Benjamin Riefenstahl
2006-12-25 6:17 ` Kenichi Handa
2006-12-25 20:47 ` Eli Zaretskii
2006-12-26 0:59 ` Kenichi Handa
2006-12-25 22:17 ` Jason Rumney
2006-12-28 13:03 ` Lennart Borgman (gmail)
2006-12-29 9:38 ` Eli Zaretskii
2006-12-29 15:48 ` Lennart Borgman (gmail)
2006-12-29 16:23 ` Jan Djärv
2006-12-29 16:45 ` Lennart Borgman (gmail)
2006-12-29 10:31 ` Jason Rumney
2006-12-29 15:39 ` Lennart Borgman (gmail)
2006-12-29 16:14 ` Jason Rumney
2006-12-29 16:32 ` Lennart Borgman (gmail)
2006-12-29 19:37 ` Juanma Barranquero
2006-12-29 19:50 ` Lennart Borgman
2006-12-29 20:29 ` Juanma Barranquero
2006-12-29 20:48 ` Lennart Borgman (gmail)
2006-12-29 21:23 ` Juanma Barranquero
2006-12-29 21:48 ` Lennart Borgman (gmail)
2006-12-29 22:03 ` Juanma Barranquero
2006-12-29 22:22 ` Lennart Borgman (gmail)
2006-12-29 23:51 ` Juanma Barranquero
2006-12-30 0:14 ` Lennart Borgman (gmail)
2006-12-30 0:32 ` Juanma Barranquero
2006-12-30 0:42 ` Lennart Borgman (gmail)
2006-12-30 1:10 ` Juanma Barranquero
2006-12-30 1:27 ` Lennart Borgman (gmail)
2006-12-30 15:39 ` Eli Zaretskii
2006-12-30 15:53 ` Lennart Borgman (gmail)
2006-12-30 16:38 ` Eli Zaretskii
2006-12-30 17:30 ` Lennart Borgman (gmail)
2006-12-31 0:35 ` Jason Rumney
2006-12-31 2:22 ` Lennart Borgman (gmail)
2006-12-30 14:33 ` Eli Zaretskii
2006-12-30 15:21 ` Lennart Borgman (gmail)
2006-12-30 16:33 ` Eli Zaretskii
2006-12-30 17:36 ` Lennart Borgman (gmail)
2006-12-30 6:24 ` Richard Stallman
2006-12-30 10:28 ` Lennart Borgman (gmail)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=458BD114.5050804@gnu.org \
--to=jasonr@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).