harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu" <wuyue...@gmail.com>
Subject [classlib][luni]A difference between Unicode4.0 and Unicode4.1 affects our implementation of j.l.Character.
Date Mon, 18 Sep 2006 06:30:06 GMT
Hi all,
I encounter a problem when implement the method isJavaIdentifierPart(int) in
j.l.Character. The Character U+200B was redefined[1] in Unicode4.1 and
caused a testcase[2] failed.
Our implementation is compatible with Unicode 4.1 whereas RI is compatible
with 4.0. I wonder which one should we follow.
[1]
Unicode 4.0 200B;ZERO WIDTH SPACE;Zs;0;BN;;;;;N;;;;;
Unicode 4.1 200B;ZERO WIDTH SPACE;Cf;0;BN;;;;;N;;;;;

[2]
assertFalse(isJavaIdentifierPart("\u200B"));

-- 
Tony Wu
China Software Development Lab, IBM

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message