(dired-get-filename): Don't call encode-coding-string
authorKenichi Handa <handa@m17n.org>
Tue, 3 Mar 1998 07:17:56 +0000 (07:17 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 3 Mar 1998 07:17:56 +0000 (07:17 +0000)
if default-file-name-coding-system is non-nil.

lisp/dired.el

index afa9856..34b1d50 100644 (file)
@@ -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