I
Ilya Zakharevich
I'm trying to use tr/// operator (instead of RExen), and do not think
it works... The simplified example is
Malformed UTF-8 character (UTF-16 surrogate 0xdfff) at -e line 1.
abcdefg
The original code contained something like
perl5.8.7 -wle "$_ = qq(abcd\x{e155}efg);
tr/\x{e100}-\x{e1ff}\x00-\x{1FFFFF}/\x00-\xFF_/; print"
Unicode character 0x1fffff is illegal at -e line 1.
________
That spurious warning can be worked about, but I think the behaviour
is not up to documentation; is it?
Thanks,
Ilya
it works... The simplified example is
UTF-16 surrogate 0xdfff at -e line 1.perl5.8.7 -wle "$_ = q(abcdefg); tr/\x{e000}-\x{e0ff}/ /c; print"
Malformed UTF-8 character (UTF-16 surrogate 0xdfff) at -e line 1.
abcdefg
The original code contained something like
perl5.8.7 -wle "$_ = qq(abcd\x{e155}efg);
tr/\x{e100}-\x{e1ff}\x00-\x{1FFFFF}/\x00-\xFF_/; print"
Unicode character 0x1fffff is illegal at -e line 1.
________
That spurious warning can be worked about, but I think the behaviour
is not up to documentation; is it?
Thanks,
Ilya