harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib][luni]some non ascii characters in String2Test
Date Thu, 21 Jun 2007 21:04:36 GMT
Tony Wu wrote:
> I found following line in java.lang.String2Test.java
> LINE464:  "string".getBytes("?Q?D??_??_6ffa?+vG?_??���??");
> I converted it to "?Q?D??_??_6ffa?+vG?_??\u951f\ufffd??" by
> native2ascii and all tests passed, but I'm not sure if this fix is ok
> since the "?" may indicate some unrecognized character in my locale?
> What's your opinion?

That test came from HARMONY-663, which is intended to test with an
illegal character set name (legal name formats are defined here [1]).

If you need to convert the test to ascii I think that is ok provided the
name is charset name illegal.



View raw message