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.

[1]
http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html#names

Regards,
Tim

Reply via email to