diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-05-27 00:50:01 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-05-27 00:50:01 +0000 |
commit | 1fb5aad76f8336192851cfa231a568d062b97ccb (patch) | |
tree | 473c00ce17b761752e040d4a2da64b536778fc8d /src/casefiddle.c | |
parent | cbb8ec3e03fd2a9c4c19e17eb8393487ce06c0eb (diff) | |
download | emacs-1fb5aad76f8336192851cfa231a568d062b97ccb.tar.gz |
(casify_object): Try to guess better whether the argument is a byte or a char.
Diffstat (limited to 'src/casefiddle.c')
-rw-r--r-- | src/casefiddle.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/casefiddle.c b/src/casefiddle.c index af76a77f221..bda49fb3653 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c @@ -57,6 +57,12 @@ casify_object (flag, obj) 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); |