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

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

Thread Previous | Thread Next
Aristotle Pagaltzis
February 15, 2009 04:11
Re: [perl #63184] mkdir with non-ASCII characters
Message ID:
* FARKAS Máté <> [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.)

Aristotle Pagaltzis // <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About