Commit 45ffe732 authored by Eli Zaretskii's avatar Eli Zaretskii Committed by Lars Ingebrigtsen

Remove usage of string-as-unibyte in arc-mode

* lisp/arc-mode.el (archive-l-e): Encode with utf-8-emacs-unix
instead of using string-as-unibyte.
parent 6c9a1deb
Pipeline #1713 failed with stage
in 50 minutes and 31 seconds
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment