aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-03-19 07:34:29 +0000
committerKenichi Handa1998-03-19 07:34:29 +0000
commit88ab3cc13356c05b284e54bff8d197b9528f8b65 (patch)
treef56f97eb971073760127cd133a8e45e4785b9ab4 /src
parent15e88d2198ec14b01c55d028af763fed44b82386 (diff)
downloademacs-88ab3cc13356c05b284e54bff8d197b9528f8b65.tar.gz
emacs-88ab3cc13356c05b284e54bff8d197b9528f8b65.zip
(Fstring_as_multibyte): Call multibyte_chars_in_text
instead of chars_in_text because we must ignore enable-multibyte-characters here.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c4
1 files changed, 2 insertions, 2 deletions
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.")
869{ 869{
870 if (! STRING_MULTIBYTE (string)) 870 if (! STRING_MULTIBYTE (string))
871 { 871 {
872 int newlen = chars_in_text (XSTRING (string)->data, 872 int newlen = multibyte_chars_in_text (XSTRING (string)->data,
873 XSTRING (string)->size_byte); 873 XSTRING (string)->size_byte);
874 /* If all the chars are ASCII, STRING is already suitable. */ 874 /* If all the chars are ASCII, STRING is already suitable. */
875 if (newlen != XSTRING (string)->size_byte) 875 if (newlen != XSTRING (string)->size_byte)
876 { 876 {