# HG changeset patch # User Kenichi Handa # Date 1162971220 0 # Node ID 5b1056dbe2baac024691a1ce59e05527640a39fd # Parent bec76643b0768903d48573f94f34127d6e84f496 (set-default-coding-systems): Always set default-file-name-coding-system to utf-8 for Mac Darwin. diff -r bec76643b076 -r 5b1056dbe2ba lisp/international/mule-cmds.el --- a/lisp/international/mule-cmds.el Wed Nov 08 01:15:08 2006 +0000 +++ b/lisp/international/mule-cmds.el Wed Nov 08 07:33:40 2006 +0000 @@ -337,11 +337,13 @@ (or (local-variable-p 'buffer-file-coding-system buffer) (ucs-set-table-for-input buffer)))) - (if (and default-enable-multibyte-characters (not (eq system-type 'darwin)) - (or (not coding-system) - (not (coding-system-get coding-system 'ascii-incompatible)))) + (if (eq system-type 'darwin) ;; The file-name coding system on Darwin systems is always utf-8. - (setq default-file-name-coding-system coding-system)) + (setq default-file-name-coding-system 'utf-8) + (if (and default-enable-multibyte-characters + (or (not coding-system) + (not (coding-system-get coding-system 'ascii-incompatible)))) + (setq default-file-name-coding-system coding-system))) ;; If coding-system is nil, honor that on MS-DOS as well, so ;; that they could reset the terminal coding system. (unless (and (eq window-system 'pc) coding-system)