From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: text-quoting-style Date: Fri, 28 Aug 2015 18:31:10 +0300 Message-ID: <83zj1b2zwh.fsf@gnu.org> References: <55E0085D.3000404@cs.ucla.edu> <83pp2750e1.fsf@gnu.org> <55E013C0.1060106@cs.ucla.edu> <83oahr4xe0.fsf@gnu.org> <55E07794.2090707@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1440775901 1907 80.91.229.3 (28 Aug 2015 15:31:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 15:31:41 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 28 17:31:26 2015 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 1ZVLck-0004zt-DW for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 17:31:26 +0200 Original-Received: from localhost ([::1]:48423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVLcj-00010D-HF for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 11:31:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVLcX-000105-2j for emacs-devel@gnu.org; Fri, 28 Aug 2015 11:31:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVLcT-0007P3-3N for emacs-devel@gnu.org; Fri, 28 Aug 2015 11:31:13 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:57549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVLcS-0007Of-SJ for emacs-devel@gnu.org; Fri, 28 Aug 2015 11:31:09 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NTS00D00TFM8P00@mtaout25.012.net.il> for emacs-devel@gnu.org; Fri, 28 Aug 2015 18:27:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NTS003IETM66WA0@mtaout25.012.net.il>; Fri, 28 Aug 2015 18:27:42 +0300 (IDT) In-reply-to: <55E07794.2090707@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 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:189271 Archived-At: > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > From: Paul Eggert > Date: Fri, 28 Aug 2015 08:00:36 -0700 > > Eli Zaretskii wrote: > > E.g., start > > Emacs in that way in such a locale, and then look at exec-path: if > > there are any non-ASCII file names there, I expect you to see raw > > bytes. > > I'm afraid I still don't understand this sort of scenario. Any environment in > which exec-path has unusual characters should be able to display those > characters; if not, it's misconfigured, and programs other than Emacs will have > trouble too. When you set LC_ALL=C you "misconfigure" the environment. The shell is still running in the original locale, so the calls to getenv will bring you the original non-ASCII characters. (Or are you saying that Posix systems will somehow convert the value of, say, PATH to adpat it to the C locale? Windows does such things, but I thought Posix systems don't.) When Emacs starts, it gets the values of various coding-systems, including the one used for DECODE_SYSTEM, from the locale's codeset. If you set LC_ALL=C, what will you get in locale-coding-system after startup? I don't think it will be your shell's codeset, will it?