From: Jason Rumney Date: Wed, 14 Nov 2007 10:26:09 +0000 (+0000) Subject: (set-locale-environment): Set default-file-name-coding-system X-Git-Tag: emacs-pretest-22.1.90~389 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=262452334c27b061364456d41f67c3868b14aa1c;p=emacs.git (set-locale-environment): Set default-file-name-coding-system from system defaults on Windows. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 32c1447ceab..cd82ad1f0c8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2007-11-14 Jason Rumney + + * international/mule-cmds.el (set-locale-environment): Set + default-file-name-coding-system from system defaults on Windows. + 2007-11-14 Nick Roberts * progmodes/gdb-ui.el (gdb-parent-bptno-enabled): New variable. diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index a858066f47c..bd2d03eb5d4 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el @@ -2609,12 +2609,13 @@ See also `locale-charset-language-names', `locale-language-names', (setq locale-coding-system coding-system)))) ;; On Windows, override locale-coding-system, - ;; keyboard-coding-system with system codepage. Note: - ;; selection-coding-system is already set in w32select.c. + ;; default-file-name-coding-system, keyboard-coding-system, + ;; terminal-coding-system with system codepage. (when (boundp 'w32-ansi-code-page) (let ((code-page-coding (intern (format "cp%d" w32-ansi-code-page)))) (when (coding-system-p code-page-coding) (setq locale-coding-system code-page-coding) + (setq default-file-name-coding-system code-page-coding) (set-keyboard-coding-system code-page-coding) (set-terminal-coding-system code-page-coding))))