projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c9a1de
)
Remove usage of string-as-unibyte in arc-mode
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 18 May 2019 08:02:25 +0000
(10:02 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 18 May 2019 08:12:57 +0000
(10:12 +0200)
* lisp/arc-mode.el (archive-l-e): Encode with utf-8-emacs-unix
instead of using string-as-unibyte.
lisp/arc-mode.el
patch
|
blob
|
history
diff --git
a/lisp/arc-mode.el
b/lisp/arc-mode.el
index 871395ebb481bfaaa85f3cd4c8c42ca5aeb9a215..9eec7ea0868076abca8417546a18ff6c838fac5f 100644
(file)
--- a/
lisp/arc-mode.el
+++ b/
lisp/arc-mode.el
@@
-535,7
+535,8
@@
in which case a second argument, length LEN, should be supplied."
(if (stringp str)
(setq len (length str))
(setq str (buffer-substring str (+ str len))))
- (setq str (string-as-unibyte str))
+ (if (multibyte-string-p str)
+ (setq str (encode-coding-string str 'utf-8-emacs-unix)))
(let ((result 0)
(i 0))
(while (< i len)