From 2bd29cff4dc254c40004e0405aa06c404b4e3187 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 9 Sep 1997 05:37:20 +0000 Subject: (dired-get-filename): Don't call encode-coding-string if file-name-coding-system is non-nil. --- lisp/dired.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/dired.el b/lisp/dired.el index 118c4c8bdee..29d397ca56a 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1300,6 +1300,7 @@ Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on file) "\""))))) (and file buffer-file-coding-system + (not file-name-coding-system) (setq file (encode-coding-string file buffer-file-coding-system))) (if (eq localp 'no-dir) file -- cgit v1.2.1