]> code.delx.au - gnu-emacs/commitdiff
(char_to_string): If a single byte char has modifier
authorKenichi Handa <handa@m17n.org>
Mon, 5 Mar 2001 06:41:40 +0000 (06:41 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 5 Mar 2001 06:41:40 +0000 (06:41 +0000)
bits that can't be reflected to the character code, ignore them
instead of signalling an error.

src/charset.c

index c26728f2cddf9823ee869a6ef52b3217f9540b96..fa355fc21bdda5fddba67d7daa801461ef021305 100644 (file)
@@ -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))
     {