# HG changeset patch # User aidan # Date 1180891958 0 # Node ID a0ef33811aa35bbfc3f1022ca4394c4a47961b20 # Parent f836e16e7b99c293e96d3a13800bb8d540ccb297 [xemacs-hg @ 2007-06-03 17:32:28 by aidan] Don't sniff the file-name-coding-system for OS X; use utf-8. diff -r f836e16e7b99 -r a0ef33811aa3 lisp/ChangeLog --- a/lisp/ChangeLog Sat Jun 02 21:51:10 2007 +0000 +++ b/lisp/ChangeLog Sun Jun 03 17:32:38 2007 +0000 @@ -1,3 +1,12 @@ +2007-06-03 Aidan Kehoe + + * mule/mule-cmds.el: + * mule/mule-cmds.el (system-type-file-name-coding): New. + * mule/mule-cmds.el (set-language-environment-coding-systems): + Check system-type-file-name-coding for an entry before making the + file-name coding system alias equivalent to the native coding + system alias. + 2007-05-25 Mike Sperber * startup.el (startup-setup-paths): Print the configure-xxx diff -r f836e16e7b99 -r a0ef33811aa3 lisp/mule/mule-cmds.el --- a/lisp/mule/mule-cmds.el Sat Jun 02 21:51:10 2007 +0000 +++ b/lisp/mule/mule-cmds.el Sun Jun 03 17:32:38 2007 +0000 @@ -73,6 +73,14 @@ (let ((coding-system-for-read 'iso-2022-7bit)) (find-file-read-only (expand-file-name "HELLO" data-directory)))) +(defvar system-type-file-name-coding + '((darwin . utf-8)) + "A map from values of `system-type' to invariant file name coding systems. +Used if a give system type does not vary in the coding system it uses for +file names; otherwise, `language-info-alist' is consulted for this +information. This affects the `file-name' coding system alias, but not the +`file-name-coding-system' variable, which in practice is mostly ignored. ") + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Language Support Functions ;;; @@ -1377,7 +1385,11 @@ (error (warn "Invalid native-coding-system %s in language environment %s" native language-name))) - (define-coding-system-alias 'file-name 'native) + (define-coding-system-alias 'file-name + (or + (let ((fncs (assq system-type system-type-file-name-coding))) + (and fncs (cdr fncs))) + 'native)) ;; Set the default keyboard and terminal coding systems to the native ;; coding system of the language environment. ;;