From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#3221: 23.0.93; ns cannot handle nonascii file names Date: Thu, 23 Jul 2009 20:40:32 +0100 Message-ID: References: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> Reply-To: Leo , 3221@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248379202 18947 80.91.229.12 (23 Jul 2009 20:00:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jul 2009 20:00:02 +0000 (UTC) Cc: Ian Eure , 3221@emacsbugs.donarmstrong.com To: Adrian Robert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 23 21:59:54 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MU4QH-0000Vz-CG for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jul 2009 21:57:50 +0200 Original-Received: from localhost ([127.0.0.1]:38474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU4QG-0006CD-CE for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jul 2009 15:57:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MU4QA-00067z-5F for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 15:57:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU4Q5-0005vx-F4 for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 15:57:41 -0400 Original-Received: from [199.232.76.173] (port=49816 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU4Q5-0005vN-74 for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 15:57:37 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48426) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MU4Q4-0005Rw-Dc for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 15:57:36 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NJvU5O014835; Thu, 23 Jul 2009 12:57:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6NJj4jH012655; Thu, 23 Jul 2009 12:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Thu, 23 Jul 2009 19:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3221 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 3221-submit@emacsbugs.donarmstrong.com id=B3221.124837803912117 (code B ref 3221); Thu, 23 Jul 2009 19:45:04 +0000 Original-Received: (at 3221) by emacsbugs.donarmstrong.com; 23 Jul 2009 19:40:39 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ppsw-1.csi.cam.ac.uk (ppsw-1.csi.cam.ac.uk [131.111.8.131]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NJeXsc012107 for <3221@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 12:40:35 -0700 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:35159) by ppsw-1.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.151]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1MU49Y-0006gc-60 (Exim 4.70) (return-path ); Thu, 23 Jul 2009 20:40:32 +0100 In-Reply-To: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> (Adrian Robert's message of "Thu, 23 Jul 2009 12:47:03 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 23 Jul 2009 15:57:41 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29593 Archived-At: On 2009-07-23 17:47 +0100, Adrian Robert wrote: > http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D3221 > > Hi, > >> After some investigation with Ian's help, I have found a workaround by >> setting the language environment to UTF-8. >> >> The bug seems to be that Emacs.app is completely unaware of the >> language setting of OS X. > > I'd like to fix this. > > Do you know why it works from terminal? Is there some code in emacs > that reads the LANG or some other env setting and sets something in > emacs? Where? What is the command to set the language environment? I don't know how internally this is done. Maybe Ian can comment on this. The language was set through =EF=A3=BF + system preferences + International. After the setting, run 'env' in Terminal.app and there's a line: LANG=3Den_GB.UTF-8 When starting Emacs from Terminal.app by running: /Applications/Emacs.app/Contents/MacOS/Emacs -q It picks up that setting automatically i.e. if you check variables such as default-file-name-coding-system, it says UTF-8. But if you start Emacs from dock, it is something else. > While the various methods on the net to set up ~/.MacOSX/ > environment.plist might work, there ought to be some Cocoa way to > detect language setting directly... It will be nice to have that. The current behaviour gave me a big shock when I first used Emacs.app. --=20 Leo's Emacs uptime: 43 days, 5 hours, 49 minutes, 1 second