diff options
| author | Kenichi Handa | 1998-03-19 07:34:29 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-03-19 07:34:29 +0000 |
| commit | 88ab3cc13356c05b284e54bff8d197b9528f8b65 (patch) | |
| tree | f56f97eb971073760127cd133a8e45e4785b9ab4 /src | |
| parent | 15e88d2198ec14b01c55d028af763fed44b82386 (diff) | |
| download | emacs-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | { |