Erland Sommarskog schrieb am 31.01.2011 um 23:42 (+0100): > Michael Ludwig (mil...@gmx.de) writes: > > Erland Sommarskog schrieb am 29.01.2011 um 14:02 (+0100): > > > >> Yes, there certainly seems to be some more stuff to do in the > >> Unicode support in Perl. For instance, support for Unicode > >> filenames in open or opendir. > > > > I think there is no portable answer here, as it depends on the > > filesystem's support for Unicode. > > Did I say it have to be portable? :-)
No … but Perl did. :-) > For instance, I use Windows exclusively, so Unicode in file names is > no problem. Did a quick test: \,,,/ (o o) ------oOOo-(_)-oOOo------ use strict; use warnings; use utf8; my $fn = 'a…b.txt'; # mit Unicode-Zeichen open my $fh, '>:encoding(UTF-8)', $fn or die "open $fn: $!"; print $fh "$fn\n"; close $fh; ------------------------- v5.10.1 (*) built for i686-cygwin-thread-multi-64int * a…b.txt * correct (in Explorer, cmd.exe, MinTTY) * has: CYG17 utf8-paths (which might be responsible) (v5.12.1) built for MSWin32-x86-multi-thread (so ActiveState) * a…b.txt * not correct * doesn't have anything with "uni" or "utf" in "perl -V" -- Michael Ludwig