harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Markov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode
Date Mon, 14 May 2007 19:17:16 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495750
] 

Mikhail Markov commented on HARMONY-3656:
-----------------------------------------

I think this issue relates to HARMONY-3307 (or even duplicates it):
H-3307 describes more common problem, for example the following code is printed differently
on IBM VME, RI & DRLVM:
    System.out.println(new String(new char[] { '\u3400' }).getBytes()[0]);

As original File.java uses uses simple toString() getBytes() etc. methods, if we fix 3307
so the code above returns the same value as RI, this JIRA will be fixed as well without modifying
File.java to call toUTF8String(), getUTF8Bytes() etc.

> [classlib][luni] File.mkdir does not support unicode
> ----------------------------------------------------
>
>                 Key: HARMONY-3656
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3656
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP
>            Reporter: Kelvin Ye
>         Assigned To: Paulex Yang
>         Attachments: harmony-3656.zip
>
>
> The following code can successfully create the dir on RI, but fail on Harmony.
> Code:
> public class test1 {
>     public static void main(String[] args) {
>         String base = System.getProperty("user.dir");
>         String ss = "dir\u3400";
>         try {
>             File dir = new File(base, ss);
>             dir.deleteOnExit();
>             if (dir.mkdir() && dir.exists() 
>                     && dir.getCanonicalPath().equals(base + File.separator +
ss)) {
>                 System.out.println("Create Successfully.");
>             }
>             else {
>                 System.out.println("Create Failed.");
>             }
>         } catch (IOException e) {
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message