From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: National Language Support Functions Date: Fri, 22 Dec 2006 12:57:02 +0000 Message-ID: <458BD61E.1070505@gnu.org> References: <458AB581.7090303@student.lu.se> <458AF7AC.5030500@student.lu.se> <458B2295.7010806@student.lu.se> <458BD114.5050804@gnu.org> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1166793267 2916 80.91.229.10 (22 Dec 2006 13:14:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Dec 2006 13:14:27 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 22 14:14:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GxkEC-0006j2-2I for ged-emacs-devel@m.gmane.org; Fri, 22 Dec 2006 14:14:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxkEB-0001oJ-I0 for ged-emacs-devel@m.gmane.org; Fri, 22 Dec 2006 08:14:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gxk80-0005cz-6E for emacs-devel@gnu.org; Fri, 22 Dec 2006 08:08:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gxk7w-0005a8-6i for emacs-devel@gnu.org; Fri, 22 Dec 2006 08:07:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gxk7v-0005Zi-Ot; Fri, 22 Dec 2006 08:07:56 -0500 Original-Received: from [194.106.33.237] (helo=outmail1.freedom2surf.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gxk7t-0007Xn-9F; Fri, 22 Dec 2006 08:07:53 -0500 Original-Received: from [127.0.0.1] (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail1.freedom2surf.net (Postfix) with ESMTP id B66B75D4F7; Fri, 22 Dec 2006 12:57:13 +0000 (GMT) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Jason Rumney In-Reply-To: <458BD114.5050804@gnu.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64110 gmane.emacs.pretest.bugs:16055 Archived-At: Jason Rumney wrote: > 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] Actually, the [en], which came from http://www.microsoft.com/globaldev/reference/win2k/setup/Langid.mspx is incorrect. These values are actually [en_US]. Nothing in my OS settings specifies US English. So these values are just plain wrong. It appears that these last two API functions report the localization package used by the Windows UI itself, which is distinct from the user's preferences for language settings they make in the control panel.