From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Re: National Language Support Functions Date: Fri, 29 Dec 2006 11:38:30 +0200 Message-ID: References: <458AB581.7090303@student.lu.se> <458AF7AC.5030500@student.lu.se> <458B2295.7010806@student.lu.se> <4593C0B1.8060406@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: dough.gmane.org X-Trace: sea.gmane.org 1167385194 18276 80.91.229.10 (29 Dec 2006 09:39:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2006 09:39:54 +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 29 10:39:52 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 1H0EDP-00006I-DT for gebp-emacs-pretest-bug@gmane.org; Fri, 29 Dec 2006 10:39:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0EDO-0006aa-QF for gebp-emacs-pretest-bug@gmane.org; Fri, 29 Dec 2006 04:39:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H0ECE-0006Cb-4G for emacs-pretest-bug@gnu.org; Fri, 29 Dec 2006 04:38:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H0ECB-0006CA-MM for emacs-pretest-bug@gnu.org; Fri, 29 Dec 2006 04:38:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0ECA-0006Bs-U7; Fri, 29 Dec 2006 04:38:35 -0500 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H0EC9-0002BX-KY; Fri, 29 Dec 2006 04:38:33 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-201-212.inter.net.il [80.230.201.212]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FPA24350 (AUTH halo1); Fri, 29 Dec 2006 11:38:31 +0200 (IST) Original-To: "Lennart Borgman (gmail)" In-reply-to: <4593C0B1.8060406@gmail.com> (lennart.borgman@gmail.com) 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:16236 gmane.emacs.devel:64413 Archived-At: > Date: Thu, 28 Dec 2006 14:03:45 +0100 > From: "Lennart Borgman (gmail)" > Cc: > > We never made any decision on this issue. Most of the answers pointed to > that GetUserDefaultUILanguage is the correct function to use. Or am I > just misinterpreting to confirm what I said at the beginning ;-) My conclusion is different. I think we do use the correct interface: GetLocaleInfo (LOCALE_USER_DEFAULT, LOCALE_SABBREVLANGNAME ... This queries the OS about the user-selected _language_ in the current locale, so it's supposed to be akin to the Posix LANG parameter. However, Microsoft have their i18n API hopelessly messed up, in that they have too many different language-related settings, their mapping to the related APIs is confusing and under-documented, and the associated guidelines change with every Windows version (the clear sign of the latter is that each new Windows version introduces another bunch of new functions that return the language). At least one user of those who reported the results of your program (Jason) would be hurt by going to GetUserDefaultUILanguage. Also, that API returns a language that cannot be easily changed, unlike the language that we currently return (see above). So my conclusion is that we should leave things as they are. If it annoys you that your system brings you the wrong tutorial, you can either change the Windows language settings, or simply request the tutorial in any language you like, with "C-u C-h t".