You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2007/04/13 12:46:15 UTC
[jira] Commented: (HARMONY-3307) [classlib][compatibility] String
initialized with unicode simbol is prrinted differently on drlvm and RI
[ https://issues.apache.org/jira/browse/HARMONY-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488642 ]
Tony Wu commented on HARMONY-3307:
----------------------------------
Hi,
It is caused by the different system property "file.encoding" returned from vm. \
e.g.
In my locale, IBM vme returns "GB18030", Drlvm returns "8859-1" whereas RI return "GBK".
So the String.getBytes uses different encoding when print strings. I took a look at the spec about the file.encoding and it is not documented anywhere, so we can set it to any meaningful string and keep it as a acceptable difference.
> [classlib][compatibility] String initialized with unicode simbol is prrinted differently on drlvm and RI
> --------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3307
> URL: https://issues.apache.org/jira/browse/HARMONY-3307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Aleksey Ignatenko
> Attachments: Test.java
>
>
> If one initializes String with value containing unicode simbol (\uxxxx) then it is printed differently on drlvm and RI.
> Code:
> String ss = "dir\u3400";
> System.out.println(ss);
> Output.
> sun: dir?
> drlvm: dir->
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.