changeset 36521:4c211a545642

(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.
author Kenichi Handa <handa@m17n.org>
date Mon, 05 Mar 2001 06:41:40 +0000
parents df3c622dba0e
children 898d0f4abcad
files src/charset.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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))
     {