From fdbc88f98bb2e79f23f0796c171aff55a9568f46 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 30 Aug 1997 19:46:24 +0000 Subject: [PATCH] (dired-get-filename): Encode file name using the buffer's coding system. --- lisp/dired.el | 2 ++ 1 file changed, 2 insertions(+) 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))))) -- 2.39.2