summaryrefslogtreecommitdiff
path: root/enc/euc_tw.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-29 13:01:27 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-29 13:01:27 +0000
commit6e3391c8665d83824fce669069ca67b69b952e2d (patch)
tree62bebd830c36c7696f9059b63556ea23a2a38303 /enc/euc_tw.c
parent67212c5ba4e7955f9def6213e00bddd91675ef19 (diff)
* enc/euc_tw.c (euctw_islead): 0x8e is a leading byte.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/euc_tw.c')
-rw-r--r--enc/euc_tw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/euc_tw.c b/enc/euc_tw.c
index 8638021..427c5cb 100644
--- a/enc/euc_tw.c
+++ b/enc/euc_tw.c
@@ -89,7 +89,7 @@ euctw_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
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)