From dc745854625e6c7b8fb441c6fb4a521857a5cce0 Mon Sep 17 00:00:00 2001 From: tomo Date: Mon, 9 Mar 2009 07:46:20 +0000 Subject: [PATCH] (Fdecode_char): Fix problem when decoding GR code-point by GL charset. --- src/mule-charset.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)); -- 1.7.10.4