You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ilya Okomin (JIRA)" <ji...@apache.org> on 2006/11/22 13:46:05 UTC

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

    [ http://issues.apache.org/jira/browse/HARMONY-535?page=comments#action_12451920 ] 
            
Ilya Okomin commented on HARMONY-535:
-------------------------------------

I would like to add, on DRLVM suggested test doesn't work no matter if  "Standards and formats" option set to Russian or not.

> java.io.File doesn't properly work with the file names which have non-latin chars
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-535
>                 URL: http://issues.apache.org/jira/browse/HARMONY-535
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: J9, Windows
>            Reporter: Anton Avtamonov
>            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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira