From: tomo Date: Thu, 27 Dec 2001 17:47:01 +0000 (+0000) Subject: (range_charset_code_point): Fixed. X-Git-Tag: r21-2-43-utf-2000-0_18-n3~5 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5083fe6b49ca3e907461ed5adac1943d9d3a4fc;p=chise%2Fxemacs-chise.git- (range_charset_code_point): Fixed. --- diff --git a/src/mule-charset.c b/src/mule-charset.c index ee90d44..b11d06e 100644 --- a/src/mule-charset.c +++ b/src/mule-charset.c @@ -1152,7 +1152,8 @@ range_charset_code_point (Lisp_Object charset, Emchar ch) + XCHARSET_BYTE_OFFSET (charset)) << 8) | (d % XCHARSET_CHARS (charset) + XCHARSET_BYTE_OFFSET (charset)); } - else if (XCHARSET_CODE_OFFSET (charset) == 0) + else if ( (XCHARSET_CODE_OFFSET (charset) == 0) || + (XCHARSET_CODE_OFFSET (charset) == XCHARSET_MIN_CODE (charset)) ) { if (XCHARSET_DIMENSION (charset) == 1) {