From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan J Third Newsgroups: gmane.emacs.bugs Subject: bug#3221: 23.0.93; ns cannot handle nonascii file names Date: Sat, 16 Jan 2016 17:06:17 +0000 Message-ID: References: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1452964039 10810 80.91.229.3 (16 Jan 2016 17:07:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jan 2016 17:07:19 +0000 (UTC) Cc: Ian Eure , Leo , 3221@debbugs.gnu.org To: Adrian Robert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 16 18:07:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aKUJi-0005AY-HY for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jan 2016 18:07:10 +0100 Original-Received: from localhost ([::1]:51298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKUJh-0004Rv-Be for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jan 2016 12:07:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKUJd-0004Rp-Uo for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2016 12:07:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKUJa-0001ZK-OL for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2016 12:07:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKUJa-0001ZF-Kz for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2016 12:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aKUJa-00045M-Ds for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2016 12:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan J Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jan 2016 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 3221-submit@debbugs.gnu.org id=B3221.145296400315677 (code B ref 3221); Sat, 16 Jan 2016 17:07:02 +0000 Original-Received: (at 3221) by debbugs.gnu.org; 16 Jan 2016 17:06:43 +0000 Original-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 Original-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 Original-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) Original-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) 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/24.5 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111674 Archived-At: 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