mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
* 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.
This commit is contained in:
parent
49408d7418
commit
d56b8fa329
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user