diff options
author | Kenichi Handa <handa@m17n.org> | 1998-11-26 08:12:12 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1998-11-26 08:12:12 +0000 |
commit | 43229ac34bea8bd5de57183d17cee1ade4065297 (patch) | |
tree | 5010e3c89caf6f97dfe866488b99b21321ec462e /src/charset.h | |
parent | 741263c22b06190c35fa94d272e78b83f1d9a5a1 (diff) | |
download | emacs-43229ac34bea8bd5de57183d17cee1ade4065297.tar.gz |
(CHAR_BYTES): If C has modifier bits, return 1.
Diffstat (limited to 'src/charset.h')
-rw-r--r-- | src/charset.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charset.h b/src/charset.h index 44955fa3ac4..710291a77fc 100644 --- a/src/charset.h +++ b/src/charset.h @@ -554,7 +554,8 @@ extern int iso_charset_table[2][2][128]; #define BASE_LEADING_CODE_P(c) (BYTES_BY_CHAR_HEAD ((unsigned char) (c)) > 1) /* Return how many bytes C will occupy in a multibyte buffer. */ -#define CHAR_BYTES(c) (SINGLE_BYTE_CHAR_P (c) ? 1 : char_bytes (c)) +#define CHAR_BYTES(c) \ + ((SINGLE_BYTE_CHAR_P ((c)) || ((c) & ~GLYPH_MASK_CHAR)) ? 1 : char_bytes (c)) /* The following two macros CHAR_STRING and STRING_CHAR are the main entry points to convert between Emacs two types of character |