From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Still cannot build native windows version of emacs 23.* Date: Tue, 12 Feb 2008 20:14:44 +0900 Message-ID: References: <47A6F0BA.7020806@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1202815086 2970 80.91.229.12 (12 Feb 2008 11:18:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 11:18:06 +0000 (UTC) Cc: mindcooler@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 12 12:18:26 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOt9V-0005WK-N6 for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 12:18:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOt92-0005QR-4a for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 06:17:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOt6o-0003Yt-1P for emacs-devel@gnu.org; Tue, 12 Feb 2008 06:15:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOt6m-0003WZ-3l for emacs-devel@gnu.org; Tue, 12 Feb 2008 06:15:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOt6l-0003WG-MT for emacs-devel@gnu.org; Tue, 12 Feb 2008 06:15:27 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOt6g-0008A4-TQ; Tue, 12 Feb 2008 06:15:23 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m1CBF5Ub001799; Tue, 12 Feb 2008 20:15:06 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m1CBEtJD008793; Tue, 12 Feb 2008 20:14:55 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m1CBEiEX014701; Tue, 12 Feb 2008 20:14:44 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.68) (envelope-from ) id 1JOt64-0002Wy-GD; Tue, 12 Feb 2008 20:14:44 +0900 In-reply-to: (message from Eli Zaretskii on Sat, 09 Feb 2008 14:20:20 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:88849 Archived-At: In article , Eli Zaretskii writes: > I took a quick look. The warning comes from this code in > mule-cmds.el, part of the function set-locale-environment: > (when (get-language-info current-language-environment 'coding-priority) > (let ((codeset (locale-info 'codeset)) > (coding-system (car (coding-system-priority-list)))) > (when codeset > (let ((cs (coding-system-aliases coding-system)) > result) > (while (and cs (not result)) > (setq result > (locale-charset-match-p (symbol-name (pop cs)) > (locale-info 'codeset)))) > (unless result > (message "Warning: Default coding system `%s' disagrees with > system codeset `%s' for this locale." coding-system codeset)))))))) > As far as I could see, `(locale-info 'codeset)' on Windows returns the > codepage that corresponds to the current language, e.g. cp1252 for a > Western-European locale. But this codepage is not in the list > returned by coding-system-priority-list; thus the warning. > I don't really understand the rationale for this test and the warning; > Handa-san, could you please shed some light on it? What does this > code try to find out, and what is the meaning of the warning? As this part was not written by me, I'm not sure what the actual rationale is. It seems that these are the changelogs for that part (from lisp/ChangeLog.unicode). 2002-10-27 Dave Love [...] * international/mule-cmds.el (wid-edit): Require when compiling. (set-locale-environment): Check locale against coding system aliases too. 2002-10-09 Dave Love [...] (set-locale-environment): Warn if coding system doesn't agree with system locale. The code checks exactly what the message says, but as the code is in the function set-locale-environment, if the most preferred coding system is different from what the locale suggests, I think, the latter should be preferred without warning. --- Kenichi Handa handa@ni.aist.go.jp