From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Nextstep build uses iso-latin by default. WHY? Date: Fri, 11 Mar 2016 23:18:48 +0100 Message-ID: <56E34448.7090502@alice.it> References: <56E32A19.7060304@alice.it> <831t7givui.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1457734787 28629 80.91.229.3 (11 Mar 2016 22:19:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 22:19:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 11 23:19:33 2016 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 1aeVPA-0007mV-CM for ged-emacs-devel@m.gmane.org; Fri, 11 Mar 2016 23:19:32 +0100 Original-Received: from localhost ([::1]:57957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeVP9-00055E-OV for ged-emacs-devel@m.gmane.org; Fri, 11 Mar 2016 17:19:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeVOe-0004hN-H0 for emacs-devel@gnu.org; Fri, 11 Mar 2016 17:19:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeVOZ-0002cu-F4 for emacs-devel@gnu.org; Fri, 11 Mar 2016 17:19:00 -0500 Original-Received: from smtp201.alice.it ([82.57.200.97]:39652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeVOZ-0002bp-2q; Fri, 11 Mar 2016 17:18:55 -0500 Original-Received: from [192.168.1.101] (95.247.135.77) by smtp201.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 56CECDB801EC33A6; Fri, 11 Mar 2016 23:18:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: <831t7givui.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.97 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:201500 Archived-At: Il 11/03/2016 21:49, Eli Zaretskii ha scritto: >> From: Angelo Graziosi >> Date: Fri, 11 Mar 2016 21:27:05 +0100 >> >> Now (with no ~/.emacs.d nor other initialization files), "C-x C-f >> foo.txt" creates foo.txt with iso-latin-1. For ages it was similar to >> the behavior on GNU/Linux. > > What is your locale, as known to Emacs when it starts? > >> I don't understand why you adopted this change.. > > It was discussed here: > > http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00000.html > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22392 > > Why do you think Emacs should use a UTF-8 locale in your case? I use OSX since 2011 and the behavior of Emacs has always been that way.. I have a MBP in which OSX is in Italian but the keyboard is US. From Terminal: $ locale LANG="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_CTYPE="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_ALL= but (getenv "LANG") shows 'it_IT'... BTW, I have also GNU/Linux Mint 17.3 (Mate) (in dual boot with W7) on a PC with US keyboard (I would say the same model of MBP). It is in Italian and from Terminal, $ locale LANG=it_IT.UTF-8 LANGUAGE= LC_CTYPE="it_IT.UTF-8" LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPHONE="it_IT.UTF-8" LC_MEASUREMENT="it_IT.UTF-8" LC_IDENTIFICATION="it_IT.UTF-8" LC_ALL= but here the behavior is what I expect.. > >> How can I restore the previous behavior? > > If you only want to have the files' default encoding be UTF-8, add > this to your ~/.emacs: > > (setq-default buffer-file-coding-system 'utf-8) > > If you want to override your entire locale with UTF-8, do this: > > (set-locale-environment "utf-8") > OK, Angelo.