From 5ef834ea9032214344f353019a6c644e6f8c2772 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 5 Mar 2001 06:41:40 +0000 Subject: [PATCH] (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. --- src/charset.c | 5 ++--- 1 file 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)) { -- 2.39.5