]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-readin): Locally bind file-name-coding-system.
authorRichard M. Stallman <rms@gnu.org>
Mon, 6 Nov 2006 15:50:06 +0000 (15:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 6 Nov 2006 15:50:06 +0000 (15:50 +0000)
lisp/dired.el

index 491ef261c116bea18aff76a64d559b09af7171bd..5359b464579a5e710b29ce6516ceda0bedb784b6 100644 (file)
@@ -791,6 +791,9 @@ wildcards, erases the buffer, and builds the subdir-alist anew
       (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))