* [b.riefenstahl@turtle-trading.net: Mac: set-language-environment trashes default-file-name-coding-system]
@ 2006-11-06 5:02 Richard Stallman
2006-11-08 7:36 ` Kenichi Handa
0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2006-11-06 5:02 UTC (permalink / raw)
Would someone please DTRT?
Maybe it would be better on MacOS to ignore
default-file-name-coding-system and alays use `utf-8'. Or maybe
reset-language-environment should avoid setting that variable.
------- Start of forwarded message -------
To: emacs-pretest-bug@gnu.org
From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
Date: Sat, 04 Nov 2006 01:07:08 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Mac: set-language-environment trashes
default-file-name-coding-system
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed
version=3.0.4
Hi all,
- - Start Emacs as emacs -q.
- - default-file-name-coding-system is set to `utf-8'.
- - M-x set-language-environment RET UTF-8 RET.
- - default-file-name-coding-system is now set to `iso-latin-1' (!).
On Mac OS X the encoding of filenames is always UTF-8.
The problem occurs in the implementation of set-language-environment
in mule-cmds.el. set-language-environment calls
reset-language-environment which sets default-file-name-coding-system
to iso-latin-1 unconditionally. After that, set-language-environment
calls set-default-coding-systems but that function avoids setting
default-file-name-coding-system specifically on Darwin/Mac OS X.
benny
_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [b.riefenstahl@turtle-trading.net: Mac: set-language-environment trashes default-file-name-coding-system]
2006-11-06 5:02 [b.riefenstahl@turtle-trading.net: Mac: set-language-environment trashes default-file-name-coding-system] Richard Stallman
@ 2006-11-08 7:36 ` Kenichi Handa
0 siblings, 0 replies; 2+ messages in thread
From: Kenichi Handa @ 2006-11-08 7:36 UTC (permalink / raw)
Cc: emacs-devel
In article <E1GgwcV-0000OG-1J@fencepost.gnu.org>, Richard Stallman <rms@gnu.org> writes:
> Would someone please DTRT?
> Maybe it would be better on MacOS to ignore
> default-file-name-coding-system and alays use `utf-8'. Or maybe
> reset-language-environment should avoid setting that variable.
Instead, I've just installed this change because it seems
simplest.
2006-11-08 Kenichi Handa <handa@m17n.org>
* international/mule-cmds.el (set-default-coding-systems): Always
set default-file-name-coding-system to utf-8 for Mac Darwin.
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-08 7:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-06 5:02 [b.riefenstahl@turtle-trading.net: Mac: set-language-environment trashes default-file-name-coding-system] Richard Stallman
2006-11-08 7:36 ` Kenichi Handa
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).