From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Re: National Language Support Functions Date: Fri, 22 Dec 2006 20:51:11 +0100 Message-ID: <458C372F.4010400@student.lu.se> References: <458AB581.7090303@student.lu.se> <458AF7AC.5030500@student.lu.se> <458B2295.7010806@student.lu.se> <458BD114.5050804@gnu.org> <458BD61E.1070505@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 1166817105 14774 80.91.229.10 (22 Dec 2006 19:51:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Dec 2006 19:51:45 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Fri Dec 22 20:51:43 2006 Return-path: Envelope-to: gebp-emacs-pretest-bug@gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GxqQa-0005OW-HS for gebp-emacs-pretest-bug@gmane.org; Fri, 22 Dec 2006 20:51:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxqQa-0000Kj-4U for gebp-emacs-pretest-bug@gmane.org; Fri, 22 Dec 2006 14:51:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GxqQS-0000JJ-M7 for emacs-pretest-bug@gnu.org; Fri, 22 Dec 2006 14:51:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GxqQR-0000IT-3n for emacs-pretest-bug@gnu.org; Fri, 22 Dec 2006 14:51:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxqQR-0000IQ-1C; Fri, 22 Dec 2006 14:51:27 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GxqQC-0008Kd-IY; Fri, 22 Dec 2006 14:51:14 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:62469 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GxqQA-0000KD-3X; Fri, 22 Dec 2006 20:51:10 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Eli Zaretskii In-Reply-To: X-Antivirus: avast! (VPS 0662-0, 2006-12-22), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1GxqQA-0000KD-3X. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1GxqQA-0000KD-3X 17da517781d1a0be24a0af0923586d0b X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for CVS Emacs." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.pretest.bugs:16068 gmane.emacs.devel:64123 Archived-At: Eli Zaretskii wrote: >> Date: Fri, 22 Dec 2006 12:57:02 +0000 >> From: Jason Rumney >> Cc: Eli Zaretskii , emacs-pretest-bug@gnu.org, >> emacs-devel@gnu.org >> >>> 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. >> > > Yep, looks like that. I guess those values are set when you answer > the question you are asked during Windows installation: whether you > want the Windows menus and dialogs in English or in your locale's > language. If I'm right, these values can be changed only by > re-installing Windows. > Re-installing Windows or using their Multilingual package. On my XP pc I found I can change LanID and LCID for USR above. I do that in the Control Panel Regional and Language Options Region Options tab Standards and formats Everything there is about things like date, currence etc. There is nothing about spoken/written language there. If we where to use the language for menus etc in Emacs I guess everyone would agree that we would use GetUserDefaultUILanguage, or? Is there any reason we should not do the same for the tutorial?