aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-09-04 04:48:23 +0000
committerRichard M. Stallman1997-09-04 04:48:23 +0000
commit7cdf2321b08230e891cb484cfdb5b2b1dfb16106 (patch)
treee38b3aeaf5debb9620744848a24279fbacb5a49d
parente41b451795bca8164ddcaae19d915f798e118590 (diff)
downloademacs-7cdf2321b08230e891cb484cfdb5b2b1dfb16106.tar.gz
emacs-7cdf2321b08230e891cb484cfdb5b2b1dfb16106.zip
(string-to-sequence): Work usefully when enable-multibyte-characters is nil.
-rw-r--r--lisp/international/mule-util.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el
index be55a22bf71..7a5bbe03775 100644
--- a/lisp/international/mule-util.el
+++ b/lisp/international/mule-util.el
@@ -37,7 +37,8 @@ TYPE should be `list' or `vector'."
37 (i 0) 37 (i 0)
38 l ch) 38 l ch)
39 (while (< i len) 39 (while (< i len)
40 (setq ch (sref string i)) 40 (setq ch (if enable-multibyte-characters
41 (sref string i) (aref string i)))
41 (setq l (cons ch l)) 42 (setq l (cons ch l))
42 (setq i (+ i (char-bytes ch)))) 43 (setq i (+ i (char-bytes ch))))
43 (setq l (nreverse l)) 44 (setq l (nreverse l))