Mercurial > emacs
comparison src/casefiddle.c @ 88426:b8ca2da7f69a
(casify_region): Fix multibyte case.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Tue, 05 Mar 2002 00:07:19 +0000 |
| parents | aac41b50c875 |
| children | 6a9e0cb7368b |
comparison
equal
deleted
inserted
replaced
| 88425:d7bd9df1799d | 88426:b8ca2da7f69a |
|---|---|
| 252 int fromlen, tolen, j; | 252 int fromlen, tolen, j; |
| 253 unsigned char str[MAX_MULTIBYTE_LENGTH]; | 253 unsigned char str[MAX_MULTIBYTE_LENGTH]; |
| 254 | 254 |
| 255 changed = 1; | 255 changed = 1; |
| 256 /* Handle the most likely case */ | 256 /* Handle the most likely case */ |
| 257 if (c < 0400 && c2 < 0400) | 257 if (multibyte ? (c < 0200 && c2 < 0200) |
| 258 : (c < 0400 && c2 < 0400)) | |
| 258 FETCH_BYTE (i) = c2; | 259 FETCH_BYTE (i) = c2; |
| 259 else if (fromlen = CHAR_STRING (c, str), | 260 else if (fromlen = CHAR_STRING (c, str), |
| 260 tolen = CHAR_STRING (c2, str), | 261 tolen = CHAR_STRING (c2, str), |
| 261 fromlen == tolen) | 262 fromlen == tolen) |
| 262 { | 263 { |
