aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2007-11-16 18:23:20 +0000
committerEli Zaretskii2007-11-16 18:23:20 +0000
commit59938af3338f4b06cdf036d34c26b42e014665e4 (patch)
treec4ec75451939a699e139271154cc091710b072be
parentcca246708aab7e48c28ceb31d54f3da0317b91dc (diff)
downloademacs-59938af3338f4b06cdf036d34c26b42e014665e4.tar.gz
emacs-59938af3338f4b06cdf036d34c26b42e014665e4.zip
(set-locale-environment): Set default-file-name-coding-system _after_
keyboard and terminal coding systems. This fixes last change.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/international/mule-cmds.el13
2 files changed, 15 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fca25ad829b..ef27cfa60e4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12007-11-16 Eli Zaretskii <eliz@gnu.org> 12007-11-16 Eli Zaretskii <eliz@gnu.org>
2 2
3 * international/mule-cmds.el (set-locale-environment): Set
4 default-file-name-coding-system _after_ keyboard and terminal
5 coding systems. This fixes last change.
6
3 * mail/rmail.el (rmail-current-subject-regexp): Allow more than 7 * mail/rmail.el (rmail-current-subject-regexp): Allow more than
4 one space after "Subject:". 8 one space after "Subject:".
5 9
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index bd2d03eb5d4..6dd1bf07213 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2615,9 +2615,18 @@ See also `locale-charset-language-names', `locale-language-names',
2615 (let ((code-page-coding (intern (format "cp%d" w32-ansi-code-page)))) 2615 (let ((code-page-coding (intern (format "cp%d" w32-ansi-code-page))))
2616 (when (coding-system-p code-page-coding) 2616 (when (coding-system-p code-page-coding)
2617 (setq locale-coding-system code-page-coding) 2617 (setq locale-coding-system code-page-coding)
2618 (setq default-file-name-coding-system code-page-coding)
2619 (set-keyboard-coding-system code-page-coding) 2618 (set-keyboard-coding-system code-page-coding)
2620 (set-terminal-coding-system code-page-coding)))) 2619 (set-terminal-coding-system code-page-coding)
2620 ;; Set default-file-name-coding-system last, so that Emacs
2621 ;; doesn't try to use cpNNNN when it defines keyboard and
2622 ;; terminal encoding. That's because the above two lines
2623 ;; will want to load code-pages.el, where cpNNNN are
2624 ;; defined; if default-file-name-coding-system were set to
2625 ;; cpNNNN while these two lines run, Emacs will want to use
2626 ;; it for encoding the file name it wants to load. And that
2627 ;; will fail, since cpNNNN is not yet usable until
2628 ;; code-pages.el finishes loading.
2629 (setq default-file-name-coding-system code-page-coding))))
2621 2630
2622 (when (eq system-type 'darwin) 2631 (when (eq system-type 'darwin)
2623 ;; On Darwin, file names are always encoded in utf-8, no matter 2632 ;; On Darwin, file names are always encoded in utf-8, no matter