From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: [Emacs-diffs] trunk r114483: * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
Date: Wed, 2 Oct 2013 08:29:56 +0200 [thread overview]
Message-ID: <93838DEC-76C4-4C1F-AEE3-3F00B77D6C9C@swipnet.se> (raw)
In-Reply-To: <jwv4n90fr1k.fsf-monnier+emacsdiffs@gnu.org>
Hello.
2 okt 2013 kl. 02:43 skrev Stefan Monnier <monnier@iro.umontreal.ca>:
>> 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.
As pointed out, how about remote mounts? I don't know.
>
> 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)?
It is Terminal.app that sets it based on system settings for language.
For other emulators, I don't know. I don't know of any other emulators BTW.
For emacs -nw inside emacs started from GUI, LANG will not be set.
But that goes for many X11 setups as well. If LANG is set in /etc/profile or ~/.profile, it won't be set if you start Emacs from a panel and the parent session manager has not LANG set.
Jan D.
next prev parent reply other threads:[~2013-10-02 6:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1VQKV4-0004YL-Qw@vcs.savannah.gnu.org>
2013-09-30 18:36 ` [Emacs-diffs] trunk r114483: * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system Stefan Monnier
2013-09-30 19:17 ` Jan Djärv
2013-09-30 22:38 ` Stefan Monnier
2013-10-01 18:28 ` Jan Djärv
2013-10-02 0:43 ` Stefan Monnier
2013-10-02 3:12 ` Stephen J. Turnbull
2013-10-03 1:51 ` Stefan Monnier
2013-10-03 7:48 ` Andreas Schwab
2013-10-03 9:42 ` Stephen J. Turnbull
2013-10-03 14:39 ` Stefan Monnier
2013-10-02 6:29 ` Jan Djärv [this message]
2013-10-03 1:53 ` Stefan Monnier
2013-10-03 17:18 ` Jan Djärv
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=93838DEC-76C4-4C1F-AEE3-3F00B77D6C9C@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.