Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 96237 invoked from network); 3 Jul 2007 16:43:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2007 16:43:28 -0000 Received: (qmail 17288 invoked by uid 500); 3 Jul 2007 16:43:30 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 17256 invoked by uid 500); 3 Jul 2007 16:43:29 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 17219 invoked by uid 99); 3 Jul 2007 16:43:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 09:43:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 09:43:26 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C9AD57141F6 for ; Tue, 3 Jul 2007 09:43:05 -0700 (PDT) Message-ID: <29826055.1183480985817.JavaMail.jira@brutus> Date: Tue, 3 Jul 2007 09:43:05 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-535) [classlib][luni] java.io.File doesn't properly work with the file names which have non-latin chars MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison closed HARMONY-535. ------------------------------- Resolution: Duplicate Closing as duplicate of HARMONY-3656. > [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 > Assignee: 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.