H
Hoi-Polloi
Hi all
I'm using Perl 5.6, and I am seeing a very strange behavior with
creating files with utf8 chars in the name. Here's a little program:
use utf8;
use charnames ':full';
my $A = "\x{C1}"; # latin capital letter a with acute
my $AAA = "_" . "$A" . "$A" . "$A";
my $AAA1 = "$A" . "$A" . "$A";
system("echo 'AAA' > $AAA");
system("echo 'AAA1' > $AAA1");
If I run it, then do 'ls' I get the following:
# ls
_ÁÁÁ Ã?ÁÁ
# ls | od -a
qa-tterry-1# ls | od -a
0000000 _ ? 81 ? 81 ? 81 nl ? 83 ? 81 ? 81 ?
81
0000020 nl
0000021
In other words, the first character of the AAA1 file is not latin
capital a acute. I am surprised that putting "_" at the beginning of
the string makes a difference. What is going on here?
Thanks,
TT
I'm using Perl 5.6, and I am seeing a very strange behavior with
creating files with utf8 chars in the name. Here's a little program:
use utf8;
use charnames ':full';
my $A = "\x{C1}"; # latin capital letter a with acute
my $AAA = "_" . "$A" . "$A" . "$A";
my $AAA1 = "$A" . "$A" . "$A";
system("echo 'AAA' > $AAA");
system("echo 'AAA1' > $AAA1");
If I run it, then do 'ls' I get the following:
# ls
_ÁÁÁ Ã?ÁÁ
# ls | od -a
qa-tterry-1# ls | od -a
0000000 _ ? 81 ? 81 ? 81 nl ? 83 ? 81 ? 81 ?
81
0000020 nl
0000021
In other words, the first character of the AAA1 file is not latin
capital a acute. I am surprised that putting "_" at the beginning of
the string makes a difference. What is going on here?
Thanks,
TT