unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Subject: [b.riefenstahl@turtle-trading.net: Mac: set-language-environment trashes default-file-name-coding-system]
Date: Mon, 06 Nov 2006 00:02:03 -0500	[thread overview]
Message-ID: <E1GgwcV-0000OG-1J@fencepost.gnu.org> (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 -------

             reply	other threads:[~2006-11-06  5:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-06  5:02 Richard Stallman [this message]
2006-11-08  7:36 ` [b.riefenstahl@turtle-trading.net: Mac: set-language-environment trashes default-file-name-coding-system] Kenichi Handa

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GgwcV-0000OG-1J@fencepost.gnu.org \
    --to=rms@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 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).