]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/dired.el (dired-get-filename): Don't string-to-multibyte
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 27 Feb 2018 21:18:30 +0000 (16:18 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 27 Feb 2018 21:18:30 +0000 (16:18 -0500)
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

index ef069d234531160bb038f79ce89972b0ecc1600d..1c283c5de3f83bf00979427fd480f874689141a9 100644 (file)
@@ -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