From 05dd46c201f8f36790bffd24b35e9ba37f4f1135 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 9 Sep 1997 05:37:20 +0000 Subject: [PATCH] (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 -- 2.39.2