You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2006/12/21 11:18:27 UTC
[jira] Updated: (HARMONY-535) [classlib][luni] 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=all ]
Alexei Zakharov updated HARMONY-535:
------------------------------------
Summary: [classlib][luni] java.io.File doesn't properly work with the file names which have non-latin chars (was: java.io.File doesn't properly work with the file names which have non-latin chars)
> [classlib][luni] 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