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/26 18:38:15 UTC

[jira] Commented: (HARMONY-535) [classlib][luni] java.io.File doesn't properly work with the file names which have non-latin chars

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