From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r114483: * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system Date: Tue, 01 Oct 2013 20:43:24 -0400 Message-ID: References: <65FF6AAC-E4BE-42FD-86D4-221842DDC479@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1380674620 10156 80.91.229.3 (2 Oct 2013 00:43:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Oct 2013 00:43:40 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Jan =?windows-1252?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 02 02:43:43 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 1VRAXU-0005Ei-O9 for ged-emacs-devel@m.gmane.org; Wed, 02 Oct 2013 02:43:40 +0200 Original-Received: from localhost ([::1]:33342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRAXU-0000m2-9S for ged-emacs-devel@m.gmane.org; Tue, 01 Oct 2013 20:43:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRAXJ-0000lf-TV for emacs-devel@gnu.org; Tue, 01 Oct 2013 20:43:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRAXC-0004PN-JS for emacs-devel@gnu.org; Tue, 01 Oct 2013 20:43:29 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:20632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRAXC-0004PD-El for emacs-devel@gnu.org; Tue, 01 Oct 2013 20:43:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxLEV/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNAcLFBgNJDGHbQaxH5AOkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFFxLEV/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNAcLFBgNJDGHbQaxH5AOkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="30899075" Original-Received: from 69-196-177-21.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.196.177.21]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Oct 2013 20:40:03 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 95869AEF0A; Tue, 1 Oct 2013 20:43:24 -0400 (EDT) In-Reply-To: <65FF6AAC-E4BE-42FD-86D4-221842DDC479@swipnet.se> ("Jan =?windows-1252?Q?Dj=E4rv=22's?= message of "Tue, 1 Oct 2013 20:28:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:163785 Archived-At: > 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. 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. 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)? >> IIUC this "utf-8 everywhere" is a property of the OS (Darwin) not of the >> GUI/toolkit. So it should apply to tty-only uses under Darwin and it >> should not apply to GNUstep. > Makes sense, fixed in trunk. Thanks, Stefan