in reply to Re^4: MD5 non ascii file name
in thread MD5 non ascii file name
But doesn't that error occur for both Windows and "other" systems? On both WinXP and linux, the following code generates the same 2-byte file name (interpreted according to the local codepage).
open(my $fh, '>', chr(0x2660)) or die $!
(Too lazy to find out how to encode ö.)
So it appears that Perl passes the string's internal buffer to the system call. I don't see how that can be used to demonstrate that Perl assumes an encoding for the file name. Quite the opposite, it seems to show that Perl assumes file names are binary strings. It's up to the user to encode them.
|
|---|