From: Kenichi Handa Date: Thu, 19 Mar 1998 07:34:29 +0000 (+0000) Subject: (Fstring_as_multibyte): Call multibyte_chars_in_text X-Git-Tag: emacs-20.3~1856 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=88ab3cc13356c05b284e54bff8d197b9528f8b65;p=emacs.git (Fstring_as_multibyte): Call multibyte_chars_in_text instead of chars_in_text because we must ignore enable-multibyte-characters here. --- diff --git a/src/fns.c b/src/fns.c index 1299f3d2a8e..34015c555c8 100644 --- 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) {