harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-535) [classlib][luni] java.io.File doesn't properly work with the file names which have non-latin chars
Date Thu, 26 Apr 2007 16:38:15 GMT

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

Tony Wu commented on HARMONY-535:
---------------------------------

Hi all,
Both the tests above have passed on my laptop. And I believe it is duplicate to harmony-3656.
would you pls close it?

> [classlib][luni] java.io.File doesn't properly work with the file names which have non-latin
chars
> --------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-535
>                 URL: https://issues.apache.org/jira/browse/HARMONY-535
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: J9, Windows
>            Reporter: Anton Avtamonov
>         Assigned To: Richard Liang
>            Priority: Minor
>
> java.io.File doesn't properly work with  the file names which has non-latin chars on
Windows (I tried Russian) .
> Minimal test case:
> import java.io.File;
> import junit.framework.TestCase;
> public class FileEncodingTest extends TestCase {
>     private File russianNamedDir;
>     protected void tearDown() throws Exception {
>         russianNamedDir.delete();
>     }
>     public void testCreateNonLatinDirectory() throws Exception {
>         russianNamedDir = new File("c:\\temp\\\u0440\u0443\u0441_dir"); //coded 'rus'
in Russian transliteration.
>         russianNamedDir.mkdirs();
>         assertTrue(russianNamedDir.isDirectory());
>     }
> }
> The very important thing here is that Control Panel > Regional And Language Options
> Regional Options tab > "Standards and formats" setting is set to "English US". All
other regional settings (location, language for non-unicode programs) are set to Russian.
If I switch "Standards and formats" to Russian everything works fine.
> Same problem with other extended unicode chars.

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