済みません。先ほどのはファイルのオープンの問題では無くて。単に表示をするだけでも
現象が出ます。下記に例を示します。この時のエラーメッセージは、Wide character in
subroutine entry at C:/Perl/lib/Encode.pm line 170.となります。宜しく、お願いし
ます。
use utf8;
binmode STDIN, ":encoding(cp932)";
binmode STDERR, ":encoding(cp932)";
binmode STDOUT, ":encoding(cp932)";
print $filename;
ろーんち様、有難うございます。
実行の結果は下記のエラーが出ます。
Malformed UTF-8 character (unexpected continuation byte 0x8e, with no preceding start byte) at 04.pl line 6.
Malformed UTF-8 character (unexpected continuation byte 0x9d, with no preceding start byte) at 04.pl line 6.
Malformed UTF-8 character (unexpected continuation byte 0x8f, with no preceding start byte) at 04.pl line 6.
Malformed UTF-8 character (unexpected continuation byte 0x82, with no preceding start byte) at 04.pl line 6.
Malformed UTF-8 character (unexpected continuation byte 0xb5, with no preceding start byte) at 04.pl line 6.
Malformed UTF-8 character (unexpected continuation byte 0x83, with no preceding start byte) at 04.pl line 6.
Malformed UTF-8 character (unexpected continuation byte 0x8a, with no preceding start byte) at 04.pl line 6.
Malformed UTF-8 character (unexpected continuation byte 0x83, with no preceding start byte) at 04.pl line 6.
Malformed UTF-8 character (unexpected continuation byte 0x83, with no preceding start byte) at 04.pl line 6.
9 No such file or directory
Take-P様、有難うございます。
私のバージョンはActive Perl v5.8.9です。
実行すると、下記のエラーが出ます。
Malformed UTF-8 character (unexpected continuation byte 0x8e, with no preceding start byte) at 04.pl line 8.
Malformed UTF-8 character (unexpected continuation byte 0x9d, with no preceding start byte) at 04.pl line 8.
Malformed UTF-8 character (unexpected continuation byte 0x8f, with no preceding start byte) at 04.pl line 8.
Malformed UTF-8 character (unexpected continuation byte 0x82, with no preceding start byte) at 04.pl line 8.
Malformed UTF-8 character (unexpected continuation byte 0xb5, with no preceding start byte) at 04.pl line 8.
Malformed UTF-8 character (unexpected continuation byte 0x83, with no preceding start byte) at 04.pl line 8.
Malformed UTF-8 character (unexpected continuation byte 0x8a, with no preceding start byte) at 04.pl line 8.
Malformed UTF-8 character (unexpected continuation byte 0x83, with no preceding start byte) at 04.pl line 8.
Malformed UTF-8 character (unexpected continuation byte 0x83, with no preceding start byte) at 04.pl line 8.
11 No such file or directory