develooper Front page | perl.perl5.porters | Postings from February 2009

Re: [perl #63184] mkdir with non-ASCII characters

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
February 15, 2009 04:11
Subject:
Re: [perl #63184] mkdir with non-ASCII characters
Message ID:
20090215121026.GB29144@klangraum.plasmasturm.org
* FARKAS Máté <perlbug-followup@perl.org> [2009-02-13 12:00]:
> On Windows Vista with Perl 5.10.0 if I would like create a
> directory with non-ASCII characters, I must convert the
> directory name into a local encoding.

This is not a bug. There are too many variables for Perl to be
able to automatically encode filenames correctly, and that’s
assuming that strings carried any information about their
character set, which they do not.

(It is more feasible to DTRT on Windows than on Unix, I think,
but you can really only help the programmer if you avert your
eyes from a bunch of edge cases and accept that people who run
into them as collateral damage.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About