aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2004-11-29 07:17:56 +0000
committerKenichi Handa2004-11-29 07:17:56 +0000
commitcea927edc867fb30a53dda7df937876b3fbb3d9b (patch)
tree199f8d4db872af888179a76f384d162b20734fd7
parentdcd74c5f2c90338068e114ebedf0353f976a186c (diff)
downloademacs-cea927edc867fb30a53dda7df937876b3fbb3d9b.tar.gz
emacs-cea927edc867fb30a53dda7df937876b3fbb3d9b.zip
(command-line): Decode all buffer names by locale-coding-system.
-rw-r--r--lisp/startup.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 36065f0224a..ed1a90c9354 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -953,6 +953,19 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
953 953
954 (run-hooks 'after-init-hook) 954 (run-hooks 'after-init-hook)
955 955
956 ;; Decode all buffer names.
957 (if (and default-enable-multibyte-characters locale-coding-system)
958 (save-excursion
959 (dolist (elt (buffer-list))
960 (set-buffer elt)
961 (if default-directory
962 (setq default-directory
963 (decode-coding-string default-directory
964 locale-coding-system t))))
965 (setq command-line-default-directory
966 (decode-coding-string command-line-default-directory
967 locale-coding-system t))))
968
956 ;; If *scratch* exists and init file didn't change its mode, initialize it. 969 ;; If *scratch* exists and init file didn't change its mode, initialize it.
957 (if (get-buffer "*scratch*") 970 (if (get-buffer "*scratch*")
958 (with-current-buffer "*scratch*" 971 (with-current-buffer "*scratch*"