# HG changeset patch # User Kenichi Handa # Date 983774500 0 # Node ID 4c211a545642aeb83ac3c2668ceaa194ed06489b # Parent df3c622dba0e4f894d9cb406e140582f875d8448 (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. diff -r df3c622dba0e -r 4c211a545642 src/charset.c --- a/src/charset.c Mon Mar 05 06:40:18 2001 +0000 +++ b/src/charset.c Mon Mar 05 06:41:40 2001 +0000 @@ -208,9 +208,8 @@ 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)) {