From unknown Fri Jun 20 07:11:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#3221 <3221@debbugs.gnu.org> To: bug#3221 <3221@debbugs.gnu.org> Subject: Status: 23.0.93; ns cannot handle nonascii file names Reply-To: bug#3221 <3221@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:11:55 +0000 retitle 3221 23.0.93; ns cannot handle nonascii file names reassign 3221 emacs submitter 3221 Leo severity 3221 normal tag 3221 unreproducible thanks From sl392@cam.ac.uk Tue May 5 07:36:48 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 5 May 2009 14:36:49 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n45EaemE013225 for ; Tue, 5 May 2009 07:36:43 -0700 Received: from mx10.gnu.org ([199.232.76.166]:44184) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1M1Ll9-0003yL-R1 for emacs-pretest-bug@gnu.org; Tue, 05 May 2009 10:36:39 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1M1Ll7-0002FG-Qr for emacs-pretest-bug@gnu.org; Tue, 05 May 2009 10:36:39 -0400 Received: from ppsw-0.csi.cam.ac.uk ([131.111.8.130]:43500) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1Ll7-0002En-AK for emacs-pretest-bug@gnu.org; Tue, 05 May 2009 10:36:37 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]:50317 helo=victoria.local) by ppsw-0.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.150]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1M1Ll5-0003xI-0g (Exim 4.70) for emacs-pretest-bug@gnu.org (return-path ); Tue, 05 May 2009 15:36:35 +0100 From: Leo To: emacs-pretest-bug@gnu.org Subject: 23.0.93; ns cannot handle nonascii file names Date: Tue, 05 May 2009 15:36:30 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Sender: "Leo, Shidai Liu" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) This is the biggest bug in ns port of Emacs. It exposed itself originally through emms but I have found an easy way to reproduce it. 1. move .emacs.d and .emacs to some other places so that no user customisation is in effect. 2. start Emacs from Finder 3. M-! touch =C7=F3=D6=FA.txt No =C7=F3=D6=FA.txt will be created instead, a file named .txt is created. If you start Emacs from terminal by running for example: /Applications/Emacs.app/Contents/MacOS/Emacs you won't see this bug. The consequencies of this bug is that all packages that call external programs won't be able to handle non ascii names. For example, http://permalink.gmane.org/gmane.emacs.emms.user/1426 If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG for instructions. In GNU Emacs 23.0.93.1 (i386-apple-darwin9.6.0, NS apple-appkit-949.43) of 2009-05-03 on neutron.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: paredit-mode: t dired-omit-mode: t recentf-mode: t icomplete-mode: t savehist-mode: t display-time-mode: t xterm-mouse-mode: t delete-selection-mode: t global-auto-revert-mode: t minibuffer-depth-indicate-mode: t show-paren-mode: t rcirc-track-minor-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x g m M-x r e p o r Recent messages: Loading rcirc...done Loading paren...done Loading /Users/gtd/.emacs.d/custom...done Ido mode enabled Loading /Users/gtd/.emacs.d/etc/recentf...done Cleaning up the recentf list...done (0 removed) Loading /Users/gtd/.emacs.d/init.d/site.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Current frame maximised. (Press m to repeat this command) From geb-bug-gnu-emacs@m.gmane.org Tue May 5 14:03:26 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 5 May 2009 21:03:26 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.9 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n45L3K1Y028069 for ; Tue, 5 May 2009 14:03:23 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1RnM-0004Eo-EY for bug-gnu-emacs@gnu.org; Tue, 05 May 2009 17:03:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1RnH-0004DQ-PJ for bug-gnu-emacs@gnu.org; Tue, 05 May 2009 17:03:19 -0400 Received: from [199.232.76.173] (port=57505 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1RnH-0004DN-Hj for bug-gnu-emacs@gnu.org; Tue, 05 May 2009 17:03:15 -0400 Received: from main.gmane.org ([80.91.229.2]:50379 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1RnG-00086Y-S0 for bug-gnu-emacs@gnu.org; Tue, 05 May 2009 17:03:15 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M1RnA-0005vr-Uj for bug-gnu-emacs@gnu.org; Tue, 05 May 2009 21:03:08 +0000 Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 May 2009 21:03:08 +0000 Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 May 2009 21:03:08 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Leo Subject: Re: bug#3221: 23.0.93; ns cannot handle nonascii file names Date: Tue, 05 May 2009 22:02:54 +0100 Organization: University of Cambridge Lines: 35 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:zX85srfveAZpL1PESpmmzy8cYos= Sender: news Cc: emacs-pretest-bug@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) On 2009-05-05 15:36 +0100, Leo wrote: > This is the biggest bug in ns port of Emacs. It exposed itself > originally through emms but I have found an easy way to reproduce it. > > 1. move .emacs.d and .emacs to some other places so that no user > customisation is in effect. > > 2. start Emacs from Finder > > 3. M-! touch ÇóÖú.txt > > No ÇóÖú.txt will be created instead, a file named .txt is created. > > If you start Emacs from terminal by running for example: > > /Applications/Emacs.app/Contents/MacOS/Emacs > > you won't see this bug. > > The consequencies of this bug is that all packages that call external > programs won't be able to handle non ascii names. For example, > > http://permalink.gmane.org/gmane.emacs.emms.user/1426 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. -- .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :. www.git-scm.com git - the one true version control system From rgm@gnu.org Wed Jun 17 00:29:42 2009 Received: (at control) by emacsbugs.donarmstrong.com; 17 Jun 2009 07:29:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5H7TcQa018381 for ; Wed, 17 Jun 2009 00:29:39 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MGpaT-00005k-JR; Wed, 17 Jun 2009 03:29:37 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19000.39777.414084.568239@fencepost.gnu.org> Date: Wed, 17 Jun 2009 03:29:37 -0400 From: Glenn Morris To: control Subject: control message Sender: Glenn Morris tags 3196 moreinfo unreproducible reassign 3221 emacs,ns reassign 3256 emacs,ns tags 3264 moreinfo reassign 3269 emacs,cc-mode close 3269 reassign 3281 emacs,w32 tags 3291 moreinfo severity 3310 minor close 3319 severity 3327 minor tags 3330 moreinfo unreproducible reassign 3331 emacs,ns close 3331 reassign 3351 emacs,ns severity 3350 minor reassign 3397 emacs,ns severity 3425 wishlist close 3448 reassign 3459 emacs,ns severity 3462 wishlist tags 3467 wontfix reassign 3500 emacs,ns merge 3234 3483 severity 3540 wishlist reassign 3452 emacs,w32 severity 3577 minor reassign 3581 emacs,ns reassign 3583 emacs,ns merge 3588 3593 reassign 3588 emacs,ns reassign 3589 emacs,ns reassign 3478 emacs22,w32 close 3146 From adrian.b.robert@gmail.com Thu Jul 23 09:47:30 2009 Received: (at 3221) by emacsbugs.donarmstrong.com; 23 Jul 2009 16:47:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.5 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-qy0-f202.google.com (mail-qy0-f202.google.com [209.85.221.202]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NGlQX0013403 for <3221@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 09:47:27 -0700 Received: by qyk40 with SMTP id 40so1446872qyk.19 for <3221@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 09:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date:cc :x-mailer; bh=+KwVH7BgGhCWtoS4iXZGC4NizNi5n8V/W+IRyC8fyOU=; b=fw3DDre0qsf+OYGlhig/dcLYnDeWJqdsI35IPgqylKyWX/P1kwL9LWxcIswGb8YDJP pXTbw4SNG/8WgS+E8lgRi3pCpITQ08DDhnrMXb0SDWczRlCgqtWr80CTb8c7ZfInghp1 1q2fc/tgi5iWy91oWJYYlNFsbHTQJyXFyHkJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:cc:x-mailer; b=jfPhVbsdNF1PbENsHs74U0LRVNPX/Qj5ztbe3mzkXjeEBbzNRGlZ5hsrFi0nQOZJpf B1AOLFbUW2eskmm6roAa7elLhNKKfBcggy5NIAm1xEAMjIsaRJwKvSl+ixRZpGSRvbP9 dg7qYkBUWM+0IgcCRx/01sT1MxED2Igw+95C4= Received: by 10.224.6.73 with SMTP id 9mr2313044qay.39.1248367640571; Thu, 23 Jul 2009 09:47:20 -0700 (PDT) Received: from ?10.0.1.3? (dpc6745214221.direcpc.com [67.45.214.221]) by mx.google.com with ESMTPS id 2sm2849105qwi.23.2009.07.23.09.47.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Jul 2009 09:47:20 -0700 (PDT) Message-Id: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> From: Adrian Robert To: 3221@debbugs.gnu.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: 23.0.93; ns cannot handle nonascii file names Date: Thu, 23 Jul 2009 12:47:03 -0400 Cc: Leo , Ian Eure X-Mailer: Apple Mail (2.935.3) http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3221 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? 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... From sl392@hermes.cam.ac.uk Thu Jul 23 12:40:39 2009 Received: (at 3221) by emacsbugs.donarmstrong.com; 23 Jul 2009 19:40:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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/ 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 From: Leo To: Adrian Robert Cc: 3221@debbugs.gnu.org, Ian Eure Subject: Re: bug#3221: 23.0.93; ns cannot handle nonascii file names References: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> Date: 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") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: "Leo, Shidai Liu" On 2009-07-23 17:47 +0100, Adrian Robert wrote: > http://debbugs.gnu.org/cgi/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 From jasonrumney@gmail.com Thu Jul 23 15:52:47 2009 Received: (at 3221) by emacsbugs.donarmstrong.com; 23 Jul 2009 22:52:47 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.4 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NMqg3Q012837 for <3221@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 15:52:44 -0700 Received: by wa-out-1112.google.com with SMTP id m28so178589wag.1 for <3221@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 15:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=UiltqMiD+P8ASd/8aRAgwoF+MCDJoBFocoUyEaIAj28=; b=LbWf5a6aTEGbHFm69j77MGoI1ONVA7nOd25xWAex+2GJD+Jq/yL1hBB0YPK9lNw0Q6 DlyhGvCTp+TTnygziyAhS5Uz6GcCGlPCXOJzKv3L6jRLjbUUYd821p8EHHGYRML89yXJ 7UTOLO1+6HNAPqLbiKzAIz8lKkXgvM7tyJYaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=XSqAUHWbejQssR0Dm8Jm2exha8TKCgOrHVpdC1CWqQ70RxINUe+6gUZ069gqiddhHO 4r71OGufT9wUzZgTjdXWAeK7Gi7w0nUHHc9vQ5aeTQKm0dsQkGG1Dmqj+E6J+9ThusM4 NagqGaO56dhgLpawAUGVPQdE+z9K/AFT/nCXc= Received: by 10.114.132.4 with SMTP id f4mr3237147wad.75.1248389562403; Thu, 23 Jul 2009 15:52:42 -0700 (PDT) Received: from ?192.168.249.26? ([124.13.7.225]) by mx.google.com with ESMTPS id m31sm4794696wag.66.2009.07.23.15.52.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Jul 2009 15:52:41 -0700 (PDT) Sender: Jason Rumney Message-ID: <4A68E991.5030709@f2s.com> Date: Fri, 24 Jul 2009 06:52:01 +0800 From: Jason Rumney User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Adrian Robert , 3221@debbugs.gnu.org CC: Ian Eure , Leo Subject: Re: bug#3221: 23.0.93; ns cannot handle nonascii file names References: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> In-Reply-To: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Adrian Robert wrote: > 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? Yes, the command that does it is set-locale-environment in international/mule-cmds.el, called from command-line as part of the startup sequence. > > 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... Yes, the way we handle this on Windows is with a function that initializes certain environment variables from the system APIs if they are not explicitly set. See init_environment in w32.c, which is called from main in emacs.c. You probably need to do something similar at least on Mac OSX, I'm not sure about GnuStep etc, as that is probably running on a platform that complies with Emacs's expectations about which environment variables are set. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 16 12:06:43 2016 Received: (at 3221) by debbugs.gnu.org; 16 Jan 2016 17:06:43 +0000 Received: from localhost ([127.0.0.1]:51101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKUJG-00044m-Oc for submit@debbugs.gnu.org; Sat, 16 Jan 2016 12:06:42 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:35693) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKUJE-00044Y-Te for 3221@debbugs.gnu.org; Sat, 16 Jan 2016 12:06:41 -0500 Received: by mail-wm0-f54.google.com with SMTP id r129so6080068wmr.0 for <3221@debbugs.gnu.org>; Sat, 16 Jan 2016 09:06:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=KgC9/A+w3oQ4GGuzT4FYtggT+FDYeDxCgtfZeglRCA8=; b=i3x3eFh6AuUgHnNT85f6Yc0KXqAD22zceMixJihTRo6N+1wTVjJcUUrYnVz6NpWCS4 7N4atTXM8S/An0ROkEdIz1+HccPTzvjGsmejvKFeglTP83SWDSG14Rvh0uiUem7+bSiz EdgwFl7o6J8Bn08ggzGhHElBf1tgP3jYBi5jnSR9eHfzkp4HBrwkxcgnXASk+vxILru4 MEmhERaxmUVHg1HmNthVlu/9I22Wx5yZgT5/TKfb7usiQ2JrGqj6XJvyqrALBnLF0myj F/Oa0xcU4272KrX0YXmWu2bWSitw421tFPsD6A4XH9y9icKzIE1GUAzeU5+HlNG0w1E7 tYHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type :content-transfer-encoding; bh=KgC9/A+w3oQ4GGuzT4FYtggT+FDYeDxCgtfZeglRCA8=; b=B95yaMw3iW8hFSNrEmT23WS7LK9omcbgKpoBA6VJAGaJ9ehIVUFuXN+nvJhVDJ9nEG PALvje7oIPW7MF1t3C4a3PwR6dSS4UNQ9SMQKbxRO/v0VnbWVEbhXMTUCvSI/ec+1rh1 M0i9rkOvYuOQ7oInGTOBuXE3N7r2+kHL13/N6QtX2Vi/IKqf4kgdeDu0ynBBJVAdVeVP 10NkYm6J1sXuKeWY9DE5Bu4VHBlFDfsySyH+B7UW9x9xnwagy+4QWQALYmEzANNVFevS U81EPEBxBAK0FDXen6U4m6Qnbf9dU0O/EdYeWlWk3fdRzPoy99cQWjjsQ9GGFayn1ASn sFeA== X-Gm-Message-State: ALoCoQmticqv6YF9QEM9OXknR1cUepdQeMHfmQsSMFzKgJxNmdZ1e9H5p5y/h+suWJ9Ky5mQXw0OJW49foG8FmDStAtVf7layA== X-Received: by 10.194.82.199 with SMTP id k7mr18200240wjy.65.1452963995391; Sat, 16 Jan 2016 09:06:35 -0800 (PST) Received: from galloway.idiocy.org (0.9.e.d.9.e.c.9.d.6.d.2.1.4.c.4.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:4c41:2d6d:9ce9:de90]) by smtp.gmail.com with ESMTPSA id q4sm15770872wja.6.2016.01.16.09.06.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Jan 2016 09:06:34 -0800 (PST) From: Alan J Third To: Adrian Robert Subject: Re: bug#3221: 23.0.93; ns cannot handle nonascii file names In-Reply-To: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> (Adrian Robert's message of "Thu, 23 Jul 2009 12:47:03 -0400") References: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Date: Sat, 16 Jan 2016 17:06:17 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 3221 Cc: Ian Eure , Leo , 3221@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Adrian Robert writes: > http://debbugs.gnu.org/cgi/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? OS X's terminal application sets the LANG environment variable, so when Emacs is run from there it picks up LANG. When run from the GUI (dock, or spotlight or whatever) OS X does *not* set the LANG variable, so Emacs doesn't pick it up. > 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 looks like the right way to get the locale from OS X is something like: const char * locale =3D [[[NSLocale currentLocale] localeIdentifier] UTF8St= ring]; HOWEVER, it appears the actual bug reported: > 2. start Emacs from Finder >=20 > 3. M-! touch =E6=B1=82=E5=8A=A9.txt >=20 > No =E6=B1=82=E5=8A=A9.txt will be created instead, a file named .txt is c= reated. is fixed in emacs 25. Or, at least, I can't reproduce it. Not having LANG set does break ispell checking with hunspell on OSX, for me at least, so it would still be nice to have the locale stuff fixed. Presumably there are other reasons for wanting Emacs to have the correct locale, too. Should that be a new bug report? --=20 Alan Third From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 16 13:34:24 2016 Received: (at 3221) by debbugs.gnu.org; 16 Jan 2016 18:34:24 +0000 Received: from localhost ([127.0.0.1]:51142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKVg8-0006Dx-Ez for submit@debbugs.gnu.org; Sat, 16 Jan 2016 13:34:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34048) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKVg7-0006Dk-0K for 3221@debbugs.gnu.org; Sat, 16 Jan 2016 13:34:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKVfy-000386-SF for 3221@debbugs.gnu.org; Sat, 16 Jan 2016 13:34:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKVfy-000380-PG; Sat, 16 Jan 2016 13:34:14 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2833 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aKVfx-0007uu-U4; Sat, 16 Jan 2016 13:34:14 -0500 Date: Sat, 16 Jan 2016 20:34:14 +0200 Message-Id: <83pox1e5ll.fsf@gnu.org> From: Eli Zaretskii To: Alan J Third In-reply-to: (message from Alan J Third on Sat, 16 Jan 2016 17:06:17 +0000) Subject: Re: bug#3221: 23.0.93; ns cannot handle nonascii file names References: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 3221 Cc: ian@digg.com, adrian.b.robert@gmail.com, sdl.web@gmail.com, 3221@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Alan J Third > Date: Sat, 16 Jan 2016 17:06:17 +0000 > Cc: Ian Eure , Leo , 3221@debbugs.gnu.org > > Not having LANG set does break ispell checking with hunspell on OSX, for > me at least, so it would still be nice to have the locale stuff fixed. > Presumably there are other reasons for wanting Emacs to have the correct > locale, too. > > Should that be a new bug report? Are you saying that the NS build doesn't pick up the correct locale in the session run from the GUI because it can only do so if LANG is set? If so, yes, I think a separate bug report should be filed for that. Having a correct value of the locale is very important for many things in Emacs; spell-checking is just a tip of the iceberg. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 16 15:48:58 2016 Received: (at control) by debbugs.gnu.org; 16 Jan 2016 20:48:58 +0000 Received: from localhost ([127.0.0.1]:51208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKXmM-0002bM-4l for submit@debbugs.gnu.org; Sat, 16 Jan 2016 15:48:58 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:33497) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKXmK-0002b9-Nh for control@debbugs.gnu.org; Sat, 16 Jan 2016 15:48:56 -0500 Received: by mail-wm0-f45.google.com with SMTP id 123so9841779wmz.0 for ; Sat, 16 Jan 2016 12:48:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:message-id:to:from:subject; bh=YUXJMi5ncYwuvaZwd0aT3duA9A/lWiHRB00UqY1DKSA=; b=hoh+8yILvXlLQ72X93qRIqjqbeTXDbyv126Lzey8Dh94iqBzQXXaEp5pY21LOeFlml CpC1zip985rP2RY6CXwGPjYDTQITsxoTXLIquCMuvLCTEPhDzKKMIuZCWsFDtDOkt6LA np9WsGKUtUzI8mxlIvwNyk2ioZMmBp/Mkt73cn6wI3J2Egr6Q6kZwu45RC/4A+CRILTh TMPxVxkWB6WheshkUlSkmRhSyjtt4ie08Wprn9/TeSORBC7hthHv3R9J7itXf/gnY3D8 XKtieHFjV8Iv0FevrQUEPAiKnEX57izuD1JLbbHZZoL1e+XIR2Eru18Ij8W1nvgKoLji RWeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:message-id:to:from:subject; bh=YUXJMi5ncYwuvaZwd0aT3duA9A/lWiHRB00UqY1DKSA=; b=nHDv/3n0kZZrzwCgI+aAKNsEZyWsFmInv6UtkouZaOteozklZXP785mz/fDl5+0V5i BGzrOaj2TgPajB70s2ygvpSF4EJvn3BU2aWmrio83ReKyc7nkWcvORxopWSbzr1u3ncZ ixlzyelTj0W188lu/soNC/OvzRCnnsf2VNR10TELgoe7Y3w7KCwARl/FoKvG8vVFn7l4 bK8B+nwY7JCRRz70BP06w0neR/mpVzUVuNaoAjW1BNezSAlY5XXCqk//4ER1gZKyDtqI hgbOVV8kuk7cHRqV1QkWb1WChrWtAUm0NZLa/dI+aFI2yyl3fM0OUJcERmeEcCDFYhdd k20g== X-Gm-Message-State: AG10YOSl+Epq/Zs8rBhzAlaTv6smhgQysB9RmrZf0WXy6SbvqpAHh10SbeRcf4s1eymUWw== X-Received: by 10.28.230.92 with SMTP id d89mr5578833wmh.12.1452977331194; Sat, 16 Jan 2016 12:48:51 -0800 (PST) Received: from galloway.idiocy.org (0.9.e.d.9.e.c.9.d.6.d.2.1.4.c.4.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:4c41:2d6d:9ce9:de90]) by smtp.gmail.com with ESMTPSA id az10sm16449544wjc.28.2016.01.16.12.48.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Jan 2016 12:48:50 -0800 (PST) Date: Sat, 16 Jan 2016 20:48:49 +0000 Message-Id: To: control@debbugs.gnu.org From: Alan J Third Subject: control message for bug #3221 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tags 3221 unreproducible From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 17:27:32 2016 Received: (at control) by debbugs.gnu.org; 1 Feb 2016 22:27:32 +0000 Received: from localhost ([127.0.0.1]:55387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQMwV-000451-Si for submit@debbugs.gnu.org; Mon, 01 Feb 2016 17:27:31 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:38040) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQMwU-00044p-MI for control@debbugs.gnu.org; Mon, 01 Feb 2016 17:27:30 -0500 Received: by mail-wm0-f41.google.com with SMTP id p63so92822251wmp.1 for ; Mon, 01 Feb 2016 14:27:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:message-id:to:from:subject; bh=yYoxwWEz07LbC9Pl3jUqHCjQbueO716tXAsYkFnXy44=; b=N3Hr8KTSPVP1BqvcgUyA9Qi3cwyXbtBPznOh4ndSC9Un0GB0CDCuPZncecEKq0gRwr 3LFm0lywKKBe4P3FbwBp6cp8wG2QujkdE5b2mXe2rAcGntVahB6vFd0IkPCL7dnxRtNe GEatH9EaEqyGjUOJ4pRk58+ThcIj13YucybaUPQHXx5uOW5NJBDcUnPgjlaj8R7pIoa+ Dvvn2lZDl7tuIJhLLhr2kcL/YRFR7fXopuWK6kl3ZnmyoE6qhRvjyEMnbNQF5EsLfcYU 7Dp7+5uKoC3EyrOBT+ojxod9wjLwi8Fj0D9C4ota9FGFi6lV0ipNd1+X06i5l/ci5H27 y5lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:message-id:to:from:subject; bh=yYoxwWEz07LbC9Pl3jUqHCjQbueO716tXAsYkFnXy44=; b=Pmy1XeOBRm9yMMGbi8xdV1g6u3yagHvVzrYByK1wRZ4s4UpxBKya8ATVaYhb71bEQo KzbhFT3M/Tm3q8+ERBqxCuaDWS/fcL9Q2svl7N23DAhm3s6JgbMc4j14dO+q7/Nf8oIc f63OIdQD8rI8nbei+4g39lEt3XcYbAFslqc8UVPhtPkfU7YvBRWz7j3/0VoAvlcEp3km unxK+52k+UkJ2Qyf/X5IcsYsRIHRYF1Knm96Rye7XAIRADbXL9sw7GC3BC9A//9XZfjk PXnuPb6hEO780413Ik3y/UwdZP7U1lJJ7fO0qRrdHTnuT6e+ZtdlFInMSJ9z1WSNhxD1 3ZUw== X-Gm-Message-State: AG10YOSiBAkc5IOYcWIKie9rh8F6JVgXYsvLpAOa85jq/WLA9SmzmA7LUPXMivh3UyqHDQ== X-Received: by 10.194.9.98 with SMTP id y2mr25107338wja.105.1454365645241; Mon, 01 Feb 2016 14:27:25 -0800 (PST) Received: from galloway.local (0.2.a.b.5.d.d.e.5.5.0.6.4.e.8.6.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:68e4:6055:edd5:ba20]) by smtp.gmail.com with ESMTPSA id c26sm13538740wmi.24.2016.02.01.14.27.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2016 14:27:24 -0800 (PST) Date: Mon, 01 Feb 2016 22:27:22 +0000 Message-Id: To: control@debbugs.gnu.org From: Alan Third Subject: control message for bug #3221 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 3221 unreproducible close 3221 From unknown Fri Jun 20 07:11:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 01 Mar 2016 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator