diff options
author | Kenichi Handa <handa@m17n.org> | 2001-03-05 06:41:40 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2001-03-05 06:41:40 +0000 |
commit | 5ef834ea9032214344f353019a6c644e6f8c2772 (patch) | |
tree | f5abddd53d9d29aac08239e1ca886ee2bd01251e | |
parent | 2f4b4b44cf08915472cee110bfbccb0cb65d7d09 (diff) | |
download | emacs-5ef834ea9032214344f353019a6c644e6f8c2772.tar.gz |
(char_to_string): If a single byte char has modifier
bits that can't be reflected to the character code, ignore them
instead of signalling an error.
-rw-r--r-- | src/charset.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/charset.c b/src/charset.c index c26728f2cdd..fa355fc21bd 100644 --- a/src/charset.c +++ b/src/charset.c @@ -208,9 +208,8 @@ char_to_string (c, str) c &= (037 | (~0177 & ~CHAR_CTL)); } - /* If C still has any modifier bits, it is an invalid character. */ - if (c & CHAR_MODIFIER_MASK) - invalid_character (c); + /* If C still has any modifier bits, just ignore it. */ + c &= ~CHAR_MODIFIER_MASK; } if (SINGLE_BYTE_CHAR_P (c)) { |