You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Kelvin Ye (JIRA)" <ji...@apache.org> on 2007/04/16 07:31:15 UTC

[jira] Created: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

[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


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.


[jira] Commented: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505319 ] 

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

After new charsets integration 3307 issue was resolved, but this one still remains - i've just checked.
So, it seems that we still need to fix this one.

I've tried Kelvin's enhanced patch and it fixes the problem (and the problem described in H-3783 due to which the previous patch was reverted does not appear) and I'm +1 for commiting it. Sorry for confusion and stopping the patch integration.

> [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
>            Assignee: 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.


[jira] Updated: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye updated HARMONY-3656:
-------------------------------

    Attachment: harmony-3656.zip

> [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.


[jira] Closed: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye closed HARMONY-3656.
------------------------------


Verified. It's OK. Thanks very much!

> [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
>            Assignee: 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.


[jira] Updated: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye updated HARMONY-3656:
-------------------------------

    Attachment: harmony-3656.diff

Would you please try this patch? Thanks very much!

> [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
>         Attachments: harmony-3656.diff
>
>
> 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.


[jira] Updated: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye updated HARMONY-3656:
-------------------------------

    Attachment: harmony-3656.diff

Hi Paulex, please try the new patch harmony-3656.diff. I also add the regression tests. Thanks very much!

> [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.diff
>
>
> 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.


[jira] Updated: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye updated HARMONY-3656:
-------------------------------

    Patch Info: [Patch Available]

> [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
>         Attachments: harmony-3656.diff
>
>
> 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.


[jira] Assigned: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paulex Yang reassigned HARMONY-3656:
------------------------------------

    Assignee: Paulex Yang

> [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.diff
>
>
> 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.


[jira] Commented: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Resolved: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paulex Yang resolved HARMONY-3656.
----------------------------------

    Resolution: Fixed

Kelvin, patch applied at revision 532683, thanks a lot for this enhancement, please verify.

> [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.diff
>
>
> 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.


[jira] Reopened: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paulex Yang reopened HARMONY-3656:
----------------------------------


The patch causes regression, which is reported by HARMONY-3783, rolled back at r533069.

> [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.diff
>
>
> 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.


[jira] Updated: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye updated HARMONY-3656:
-------------------------------

    Attachment:     (was: harmony-3656.diff)

> [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
>
> 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.


[jira] Commented: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506582 ] 

Alexei Zakharov commented on HARMONY-3656:
------------------------------------------

Paulex, are you still interested in this issue?

> [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
>            Assignee: 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.


[jira] Updated: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye updated HARMONY-3656:
-------------------------------

    Attachment:     (was: harmony-3656.diff)

> [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
>
> 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.


[jira] Updated: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye updated HARMONY-3656:
-------------------------------

    Attachment:     (was: harmony-3656.zip)

> [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
>            Assignee: Paulex Yang
>
> 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.


[jira] Updated: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Ye updated HARMONY-3656:
-------------------------------

    Attachment: harmony-3656.zip

Since the tests structure has been changed, I updated the patch.
Please try the updated patch. Thanks very much!

> [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
>            Assignee: 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.


[jira] Resolved: (HARMONY-3656) [classlib][luni] File.mkdir does not support unicode

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paulex Yang resolved HARMONY-3656.
----------------------------------

    Resolution: Fixed

Sorry for the delay, patch applied at r549346 with a little modifications to make the FileTest for windows compile. Kelvin, thanks a lot, please verify.

> [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
>            Assignee: 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.