Mercurial > emacs
diff src/casefiddle.c @ 95328:44c693827736
(casify_object): Try to guess better whether the argument is a byte or a char.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Tue, 27 May 2008 00:50:01 +0000 |
| parents | 8971ddf55736 |
| children | e038c1a8307c |
line wrap: on
line diff
--- a/src/casefiddle.c Tue May 27 00:20:23 2008 +0000 +++ b/src/casefiddle.c Tue May 27 00:50:01 2008 +0000 @@ -57,6 +57,12 @@ return obj; c1 = XFASTINT (obj) & ~flagbits; + /* FIXME: Even if enable-multibyte-characters is nil, we may + manipulate multibyte chars. This means we have a bug for latin-1 + chars since when we receive an int 128-255 we can't tell whether + it's an eight-bit byte or a latin-1 char. */ + if (c1 >= 256) + multibyte = 1; if (! multibyte) MAKE_CHAR_MULTIBYTE (c1); c = DOWNCASE (c1);
