From 45ffe7329e88226809b860a9e8d57f09815820fc Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 18 May 2019 10:02:25 +0200 Subject: [PATCH] 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. --- lisp/arc-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 871395ebb48..9eec7ea0868 100644 --- 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) -- 2.39.2