(Fstring_as_multibyte): Call multibyte_chars_in_text
authorKenichi Handa <handa@m17n.org>
Thu, 19 Mar 1998 07:34:29 +0000 (07:34 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 19 Mar 1998 07:34:29 +0000 (07:34 +0000)
instead of chars_in_text because we must ignore
enable-multibyte-characters here.

src/fns.c

index 1299f3d..34015c5 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -869,8 +869,8 @@ If STRING is multibyte, the result is STRING itself.")
 {
   if (! STRING_MULTIBYTE (string))
     {
-      int newlen = chars_in_text (XSTRING (string)->data,
-                                 XSTRING (string)->size_byte);
+      int newlen = multibyte_chars_in_text (XSTRING (string)->data,
+                                           XSTRING (string)->size_byte);
       /* If all the chars are ASCII, STRING is already suitable.  */
       if (newlen != XSTRING (string)->size_byte)
        {