From d56b8fa3296c5b1b7abe6cc4048142949a64ac02 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 27 Feb 2018 16:18:30 -0500 Subject: [PATCH] * lisp/dired.el (dired-get-filename): Don't string-to-multibyte We don't need to convert manually to multibyte now that Emacs doesn't silently convert (uni)bytes into latin-N chars depending on locale any more. --- lisp/dired.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lisp/dired.el b/lisp/dired.el index ef069d23453..1c283c5de3f 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -2352,12 +2352,7 @@ Otherwise, an error occurs in these cases." (setq start (match-end 0)))))) ;; Hence we don't need to worry about converting `\\' back to `\'. - (setq file (read (concat "\"" file "\""))) - ;; The above `read' will return a unibyte string if FILE - ;; contains eight-bit-control/graphic characters. - (if (and enable-multibyte-characters - (not (multibyte-string-p file))) - (setq file (string-to-multibyte file))))) + (setq file (read (concat "\"" file "\""))))) (and file (files--name-absolute-system-p file) (setq already-absolute t)) (cond -- 2.11.4.GIT