From: Richard M. Stallman Date: Mon, 6 Nov 2006 15:50:06 +0000 (+0000) Subject: (dired-readin): Locally bind file-name-coding-system. X-Git-Tag: emacs-pretest-22.0.91~260 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1419c7fc46ddc5d6a32a9ebe6e255f19e56a2c65;p=emacs.git (dired-readin): Locally bind file-name-coding-system. --- diff --git a/lisp/dired.el b/lisp/dired.el index 491ef261c11..5359b464579 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -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))