[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nextstep build uses iso-latin by default. WHY?
From: |
Angelo Graziosi |
Subject: |
Re: Nextstep build uses iso-latin by default. WHY? |
Date: |
Fri, 11 Mar 2016 23:18:48 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
Il 11/03/2016 21:49, Eli Zaretskii ha scritto:
From: Angelo Graziosi <address@hidden>
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.