From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r114483: * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system Date: Wed, 2 Oct 2013 08:29:56 +0200 Message-ID: <93838DEC-76C4-4C1F-AEE3-3F00B77D6C9C@swipnet.se> References: <65FF6AAC-E4BE-42FD-86D4-221842DDC479@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1380695410 10475 80.91.229.3 (2 Oct 2013 06:30:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Oct 2013 06:30:10 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 02 08:30:10 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VRFwo-0003Tu-3t for ged-emacs-devel@m.gmane.org; Wed, 02 Oct 2013 08:30:10 +0200 Original-Received: from localhost ([::1]:34084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRFwn-0005aP-JW for ged-emacs-devel@m.gmane.org; Wed, 02 Oct 2013 02:30:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRFwg-0005Uw-4z for emacs-devel@gnu.org; Wed, 02 Oct 2013 02:30:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRFwa-0008MF-C8 for emacs-devel@gnu.org; Wed, 02 Oct 2013 02:30:02 -0400 Original-Received: from mail01.bdtv.se ([176.10.222.34]:55700) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1VRFwa-0008Ls-1e for emacs-devel@gnu.org; Wed, 02 Oct 2013 02:29:56 -0400 Original-Received: (qmail 21180 invoked by uid 89); 2 Oct 2013 06:29:51 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 2 Oct 2013 06:29:51 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 0AFD91A01B0; Wed, 2 Oct 2013 06:29:51 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.1510) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 176.10.222.34 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163794 Archived-At: Hello. 2 okt 2013 kl. 02:43 skrev Stefan Monnier : >> No they should not IMHO. As they must be started from a teminal, = LANG is >> either correct or set to another value for some purpose. >=20 > IIUC the encoding used under Darwin for filenames is always utf-8. > More to the point it uses NFD canonicalization, performed by the OS = when > needed; so pretending these are "byte sequences" that can use any > encoding you feel like, as is the case in POSIX, is not an option. As pointed out, how about remote mounts? I don't know. >=20 > I guess it's OK to obey the user who wants to shot himself in the = foot. > But I do wonder: is LANG really always set in a terminal? IF so, why > and by whom? Will LANG also be set properly if you use some other > terminal than Terminal.app (e.g. let's say you run `emacs -nw' inside > an Emacs.app started from the GUI)? It is Terminal.app that sets it based on system settings for language. For other emulators, I don't know. I don't know of any other emulators = BTW. For emacs -nw inside emacs started from GUI, LANG will not be set. But that goes for many X11 setups as well. If LANG is set in = /etc/profile or ~/.profile, it won't be set if you start Emacs from a = panel and the parent session manager has not LANG set. Jan D.