ruby-changes:3834
From: ko1@a...
Date: Tue, 29 Jan 2008 22:02:21 +0900 (JST)
Subject: [ruby-changes:3834] akr - Ruby:r15323 (trunk): * enc/euc_tw.c (euctw_islead): 0x8e is a leading byte.
akr 2008-01-29 22:01:27 +0900 (Tue, 29 Jan 2008) New Revision: 15323 Modified files: trunk/ChangeLog trunk/enc/euc_tw.c Log: * enc/euc_tw.c (euctw_islead): 0x8e is a leading byte. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enc/euc_tw.c?r1=15323&r2=15322&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15323&r2=15322&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15322) +++ ChangeLog (revision 15323) @@ -1,3 +1,7 @@ +Tue Jan 29 21:59:16 2008 Tanaka Akira <akr@f...> + + * enc/euc_tw.c (euctw_islead): 0x8e is a leading byte. + Tue Jan 29 21:55:35 2008 Yusuke Endoh <mame@t...> * bignum.c: move object allocation out of blocking_region. Index: enc/euc_tw.c =================================================================== --- enc/euc_tw.c (revision 15322) +++ enc/euc_tw.c (revision 15323) @@ -89,7 +89,7 @@ return onigenc_mb4_is_code_ctype(enc, code, ctype); } -#define euctw_islead(c) (((c) < 0xa1 && (c) != 0x8e) || (c) == 0xff) +#define euctw_islead(c) ((UChar )((c) - 0xa1) > 0xfe - 0xa1) static UChar* euctw_left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/