diff options
| author | Kenichi Handa | 2001-03-05 06:41:40 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2001-03-05 06:41:40 +0000 |
| commit | 5ef834ea9032214344f353019a6c644e6f8c2772 (patch) | |
| tree | f5abddd53d9d29aac08239e1ca886ee2bd01251e /src | |
| parent | 2f4b4b44cf08915472cee110bfbccb0cb65d7d09 (diff) | |
| download | emacs-5ef834ea9032214344f353019a6c644e6f8c2772.tar.gz emacs-5ef834ea9032214344f353019a6c644e6f8c2772.zip | |
(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.
Diffstat (limited to 'src')
| -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) | |||
| 208 | c &= (037 | (~0177 & ~CHAR_CTL)); | 208 | c &= (037 | (~0177 & ~CHAR_CTL)); |
| 209 | } | 209 | } |
| 210 | 210 | ||
| 211 | /* If C still has any modifier bits, it is an invalid character. */ | 211 | /* If C still has any modifier bits, just ignore it. */ |
| 212 | if (c & CHAR_MODIFIER_MASK) | 212 | c &= ~CHAR_MODIFIER_MASK; |
| 213 | invalid_character (c); | ||
| 214 | } | 213 | } |
| 215 | if (SINGLE_BYTE_CHAR_P (c)) | 214 | if (SINGLE_BYTE_CHAR_P (c)) |
| 216 | { | 215 | { |