changeset 31434:28f0d4e9cbb2

(MAKE_CHAR): Be sure to set MSB of C1 to 0.
author Kenichi Handa <handa@m17n.org>
date Thu, 07 Sep 2000 08:02:20 +0000
parents b2650cc2f211
children 5d331e68ac84
files src/charset.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.h	Thu Sep 07 08:01:52 2000 +0000
+++ b/src/charset.h	Thu Sep 07 08:02:20 2000 +0000
@@ -398,7 +398,7 @@
       : ((CHARSET_DEFINED_P (charset)					    \
 	  ? CHARSET_DIMENSION (charset) == 1				    \
 	  : (charset) < MIN_CHARSET_PRIVATE_DIMENSION2)			    \
-	 ? (((charset) - 0x70) << 7) | ((c1) <= 0 ? 0 : (c1))		    \
+	 ? (((charset) - 0x70) << 7) | ((c1) <= 0 ? 0 : ((c1) & 0x7F))	    \
 	 : ((((charset)							    \
 	      - ((charset) < MIN_CHARSET_PRIVATE_DIMENSION2 ? 0x8F : 0xE0)) \
 	     << 14)							    \