diff options
| author | Kenichi Handa | 2003-05-30 06:04:17 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-05-30 06:04:17 +0000 |
| commit | 988f7a0c5dcb691e1dd2694de8328d4f22d50c2a (patch) | |
| tree | c342d28d836b6cbaf53953179dc738908d96fd57 /src | |
| parent | 170e458922800fe0d597869e958c96bf47a47e70 (diff) | |
| download | emacs-988f7a0c5dcb691e1dd2694de8328d4f22d50c2a.tar.gz emacs-988f7a0c5dcb691e1dd2694de8328d4f22d50c2a.zip | |
(read1): While reading a string, set force_singlebyte
and force_multibyte correctly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lread.c b/src/lread.c index 7e4ed5272e8..8f990aaeb11 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -2369,6 +2369,10 @@ read1 (readcharfun, pch, first_in_list) | |||
| 2369 | else | 2369 | else |
| 2370 | { | 2370 | { |
| 2371 | p += CHAR_STRING (c, (unsigned char *) p); | 2371 | p += CHAR_STRING (c, (unsigned char *) p); |
| 2372 | if (CHAR_BYTE8_P (c)) | ||
| 2373 | force_singlebyte = 1; | ||
| 2374 | else if (! ASCII_CHAR_P (c)) | ||
| 2375 | force_multibyte = 1; | ||
| 2372 | } | 2376 | } |
| 2373 | nchars++; | 2377 | nchars++; |
| 2374 | } | 2378 | } |