From: Richard M. Stallman Date: Sat, 30 Aug 1997 19:46:24 +0000 (+0000) Subject: (dired-get-filename): Encode file name using the buffer's coding system. X-Git-Tag: emacs-20.1~319 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fdbc88f98bb2e79f23f0796c171aff55a9568f46;p=emacs.git (dired-get-filename): Encode file name using the buffer's coding system. --- diff --git a/lisp/dired.el b/lisp/dired.el index 30348d62ffc..e3273f732f0 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1299,6 +1299,8 @@ Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on "\\([^\\]\\|\\`\\)\"" file "\\1\\\\\"" nil t) file) "\""))))) + (if buffer-file-coding-system + (setq file (encode-coding-string file buffer-file-coding-system))) (if (eq localp 'no-dir) file (and file (concat (dired-current-directory localp) file)))))