[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d56b8fa: * lisp/dired.el (dired-get-filename): Don'
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] master d56b8fa: * lisp/dired.el (dired-get-filename): Don't string-to-multibyte |
Date: |
Tue, 27 Feb 2018 16:18:36 -0500 (EST) |
branch: master
commit d56b8fa3296c5b1b7abe6cc4048142949a64ac02
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* 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 ef069d2..1c283c5 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master d56b8fa: * lisp/dired.el (dired-get-filename): Don't string-to-multibyte,
Stefan Monnier <=