You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Anton Avtamonov <an...@gmail.com> on 2006/05/30 15:31:34 UTC
[classlib] java.io.File doesn't work with non-latin names
Hi,
I just faced the problem that java.io.File doesn't properly work with
the file names which has non-latin chars (I tried Russian, of course
:-) ) on Windows.
The minimal code to reproduce is:
File russianDir = new File("c:\\temp\\\u0440\u0443\u0441_dir");
russianDir.mkdirs();
System.out.println("isCreated = " + russianDir.isDirectory());
which prints out "false".
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.
Similar problem with other extended unicode chars.
I looked through both mailing list and JIRA and found lots
encoding-related issues, but not sure if my case is covered or not.
Could the experts please look and decide should I submit new JIRA
issue or not? If it is already tracked could you please point out its
JIRA index?
Wishes,
--
Anton Avtamonov,
Intel Middleware Products Division
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [classlib] java.io.File doesn't work with non-latin names
Posted by Anton Avtamonov <an...@gmail.com>.
On 5/30/06, Tim Ellison <t....@gmail.com> wrote:
> Hi Anton (not seen you for a while!)
Yeah, I was busy with Swing contribution preparation :-)
>
> Probably best to raise it in JIRA anyway, and we can close it as a
> duplicate if it is already covered. Otherwise it may get lost on the list.
>
> (just cut-n-paste your note into JIRA)
Done. Tracked as https://issues.apache.org/jira/browse/HARMONY-535
Thank you for the response!
--
Anton Avtamonov,
Intel Middleware Products Division
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [classlib] java.io.File doesn't work with non-latin names
Posted by Tim Ellison <t....@gmail.com>.
Hi Anton (not seen you for a while!)
Probably best to raise it in JIRA anyway, and we can close it as a
duplicate if it is already covered. Otherwise it may get lost on the list.
(just cut-n-paste your note into JIRA)
Regards,
Tim
Anton Avtamonov wrote:
> Hi,
>
> I just faced the problem that java.io.File doesn't properly work with
> the file names which has non-latin chars (I tried Russian, of course
> :-) ) on Windows.
>
> The minimal code to reproduce is:
> File russianDir = new File("c:\\temp\\\u0440\u0443\u0441_dir");
> russianDir.mkdirs();
> System.out.println("isCreated = " + russianDir.isDirectory());
>
> which prints out "false".
>
> 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.
> Similar problem with other extended unicode chars.
>
> I looked through both mailing list and JIRA and found lots
> encoding-related issues, but not sure if my case is covered or not.
>
> Could the experts please look and decide should I submit new JIRA
> issue or not? If it is already tracked could you please point out its
> JIRA index?
>
> Wishes,
--
Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org