]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-get-filename): Encode file name using the buffer's coding system.
authorRichard M. Stallman <rms@gnu.org>
Sat, 30 Aug 1997 19:46:24 +0000 (19:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 30 Aug 1997 19:46:24 +0000 (19:46 +0000)
lisp/dired.el

index 30348d62ffcfe0565e0a24e4d956b9c49f64eee6..e3273f732f09b94c2ec7572dbf3cd32767131c96 100644 (file)
@@ -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)))))