From: Angelo Graziosi <angelo.graziosi@alice.it>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Nextstep build uses iso-latin by default. WHY?
Date: Fri, 11 Mar 2016 23:18:48 +0100 [thread overview]
Message-ID: <56E34448.7090502@alice.it> (raw)
In-Reply-To: <831t7givui.fsf@gnu.org>
Il 11/03/2016 21:49, Eli Zaretskii ha scritto:
>> From: Angelo Graziosi <angelo.graziosi@alice.it>
>> 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.
next prev parent reply other threads:[~2016-03-11 22:18 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-11 20:27 Nextstep build uses iso-latin by default. WHY? Angelo Graziosi
2016-03-11 20:49 ` Eli Zaretskii
2016-03-11 22:18 ` Angelo Graziosi [this message]
2016-03-12 6:54 ` Eli Zaretskii
2016-03-12 16:55 ` Angelo Graziosi
2016-03-11 22:41 ` Stefan Monnier
2016-03-20 15:11 ` Alan Third
2016-03-20 15:34 ` Stefan Monnier
2016-04-02 15:45 ` Alan Third
2016-04-08 13:57 ` Anders Lindgren
2016-04-08 14:41 ` Toon Claes
2016-04-08 19:59 ` Anders Lindgren
2016-04-08 23:03 ` John Wiegley
2016-04-14 6:30 ` Toon Claes
2016-04-14 9:31 ` Anders Lindgren
2016-04-14 12:52 ` Regexp search in debbugs (was: Nextstep build uses iso-latin by default. WHY?) Michael Albinus
2016-04-14 13:35 ` Regexp search in debbugs Lars Magne Ingebrigtsen
2016-04-15 0:48 ` Nextstep build uses iso-latin by default. WHY? YAMAMOTO Mitsuharu
2016-04-16 8:31 ` YAMAMOTO Mitsuharu
2016-04-16 13:47 ` Stefan Monnier
2016-04-16 22:32 ` John Wiegley
2016-04-14 12:35 ` Stefan Monnier
2016-04-14 16:39 ` John Wiegley
2016-04-14 22:40 ` YAMAMOTO Mitsuharu
2016-04-14 23:26 ` Stefan Monnier
2016-04-15 5:42 ` Anders Lindgren
2016-04-15 9:21 ` YAMAMOTO Mitsuharu
2016-03-11 23:43 ` Angelo Graziosi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56E34448.7090502@alice.it \
--to=angelo.graziosi@alice.it \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.