changeset 73775:5fbb36eba879

(dired-readin): Locally bind file-name-coding-system.
author Richard M. Stallman <rms@gnu.org>
date Mon, 06 Nov 2006 15:50:06 +0000
parents 76374993905a
children 876b645dd9c2
files lisp/dired.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Mon Nov 06 15:49:22 2006 +0000
+++ b/lisp/dired.el	Mon Nov 06 15:50:06 2006 +0000
@@ -791,6 +791,9 @@
       (run-hooks 'dired-before-readin-hook)
       (if (consp buffer-undo-list)
 	  (setq buffer-undo-list nil))
+      (make-local-variable 'file-name-coding-system)
+      (setq file-name-coding-system
+	    (or coding-system-for-read file-name-coding-system))
       (let (buffer-read-only
 	    ;; Don't make undo entries for readin.
 	    (buffer-undo-list t))