diff options
Diffstat (limited to 'src')
| -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]; | |||
| 554 | #define BASE_LEADING_CODE_P(c) (BYTES_BY_CHAR_HEAD ((unsigned char) (c)) > 1) | 554 | #define BASE_LEADING_CODE_P(c) (BYTES_BY_CHAR_HEAD ((unsigned char) (c)) > 1) |
| 555 | 555 | ||
| 556 | /* Return how many bytes C will occupy in a multibyte buffer. */ | 556 | /* Return how many bytes C will occupy in a multibyte buffer. */ |
| 557 | #define CHAR_BYTES(c) (SINGLE_BYTE_CHAR_P (c) ? 1 : char_bytes (c)) | 557 | #define CHAR_BYTES(c) \ |
| 558 | ((SINGLE_BYTE_CHAR_P ((c)) || ((c) & ~GLYPH_MASK_CHAR)) ? 1 : char_bytes (c)) | ||
| 558 | 559 | ||
| 559 | /* The following two macros CHAR_STRING and STRING_CHAR are the main | 560 | /* The following two macros CHAR_STRING and STRING_CHAR are the main |
| 560 | entry points to convert between Emacs two types of character | 561 | entry points to convert between Emacs two types of character |