Commit 146486f8 authored by Stefan Monnier's avatar Stefan Monnier

* mule-cmds.el (encoded-string-description): Require unibyte string as input

parent 96a0d4fe
Pipeline #1824 failed with stage
in 54 minutes and 51 seconds
......@@ -2898,8 +2898,9 @@ If there's no description string for VALUE, return nil."
(?\x9b . "CSI")))
(defun encoded-string-description (str coding-system)
"Return a pretty description of STR that is encoded by CODING-SYSTEM."
(setq str (string-as-unibyte str))
"Return a pretty description of STR that is encoded by CODING-SYSTEM.
STR should be a unibyte string."
(cl-assert (not (multibyte-string-p str)))
(mapconcat
(if (and coding-system (eq (coding-system-type coding-system) 'iso-2022))
;; Try to get a pretty description for ISO 2022 escape sequences.
......
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