From: tomo Date: Mon, 9 Mar 2009 07:46:20 +0000 (+0000) Subject: (Fdecode_char): Fix problem when decoding GR code-point by GL charset. X-Git-Tag: r21-4-21-chise-0_24-10^20~10 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc745854625e6c7b8fb441c6fb4a521857a5cce0;p=chise%2Fxemacs-chise.git.1 (Fdecode_char): Fix problem when decoding GR code-point by GL charset. --- diff --git a/src/mule-charset.c b/src/mule-charset.c index e7127a7..fb0ca3f 100644 --- a/src/mule-charset.c +++ b/src/mule-charset.c @@ -1,7 +1,7 @@ /* Functions to handle multilingual characters. Copyright (C) 1992, 1995 Free Software Foundation, Inc. Copyright (C) 1995 Sun Microsystems, Inc. - Copyright (C) 1999,2000,2001,2002,2003,2004,2008 MORIOKA Tomohiko + Copyright (C) 1999,2000,2001,2002,2003,2004,2008,2009 MORIOKA Tomohiko This file is part of XEmacs. @@ -2703,7 +2703,8 @@ If corresponding character is not found, nil is returned. charset = Fget_charset (charset); CHECK_INT (code); c = XINT (code); - if (XCHARSET_GRAPHIC (charset) == 1) + if ( (XCHARSET_GRAPHIC (charset) == 0) || + (XCHARSET_GRAPHIC (charset) == 1) ) c &= 0x7F7F7F7F; if (NILP (defined_only)) c = DECODE_CHAR (charset, c, !NILP (without_inheritance));