From 0457b5e41d5ecaf6eb84d1dbf4271afb8479bfe8 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 3 Mar 1998 07:17:56 +0000 Subject: [PATCH] (dired-get-filename): Don't call encode-coding-string if default-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 afa98562f80..34b1d50ad90 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1304,6 +1304,7 @@ Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on "\""))))) (and file buffer-file-coding-system (not file-name-coding-system) + (not default-file-name-coding-system) (setq file (encode-coding-string file buffer-file-coding-system))) (if (eq localp 'no-dir) file -- 2.39.2