From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [b.riefenstahl@turtle-trading.net: Mac: set-language-environment trashes default-file-name-coding-system] Date: Mon, 06 Nov 2006 00:02:03 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1162789482 12171 80.91.229.2 (6 Nov 2006 05:04:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Nov 2006 05:04:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 06 06:04:41 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ggwf2-0006JC-Hx for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2006 06:04:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ggwf2-0006iY-5I for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2006 00:04:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GgwdB-0005LW-UQ for emacs-devel@gnu.org; Mon, 06 Nov 2006 00:02:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GgwdA-0005Ka-TB for emacs-devel@gnu.org; Mon, 06 Nov 2006 00:02:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GgwdA-0005KH-IT for emacs-devel@gnu.org; Mon, 06 Nov 2006 00:02:44 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ggwct-0000k6-Dw for emacs-devel@gnu.org; Mon, 06 Nov 2006 00:02:27 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GgwcV-0000OG-1J; Mon, 06 Nov 2006 00:02:03 -0500 Original-To: emacs-devel@gnu.org, handa@m17n.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:61852 Archived-At: Would someone please DTRT? Maybe it would be better on MacOS to ignore default-file-name-coding-system and alays use `utf-8'. Or maybe reset-language-environment should avoid setting that variable. ------- Start of forwarded message ------- To: emacs-pretest-bug@gnu.org From: Benjamin Riefenstahl Date: Sat, 04 Nov 2006 01:07:08 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Mac: set-language-environment trashes default-file-name-coding-system X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.4 Hi all, - - Start Emacs as emacs -q. - - default-file-name-coding-system is set to `utf-8'. - - M-x set-language-environment RET UTF-8 RET. - - default-file-name-coding-system is now set to `iso-latin-1' (!). On Mac OS X the encoding of filenames is always UTF-8. The problem occurs in the implementation of set-language-environment in mule-cmds.el. set-language-environment calls reset-language-environment which sets default-file-name-coding-system to iso-latin-1 unconditionally. After that, set-language-environment calls set-default-coding-systems but that function avoids setting default-file-name-coding-system specifically on Darwin/Mac OS X. benny _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug ------- End of forwarded message -------