develooper Front page | perl.perl5.porters | Postings from November 2004

[perl #32631] perl 5.8.5 tr/0123456789/0123456789/ x00-x09 bug

Thread Previous | Thread Next
From:
Aleksey Maksimov
Date:
November 25, 2004 17:31
Subject:
[perl #32631] perl 5.8.5 tr/0123456789/0123456789/ x00-x09 bug
Message ID:
rt-3.0.11-32631-101028.12.6614965197527@perl.org
# New Ticket Created by  Aleksey Maksimov 
# Please include the string:  [perl #32631]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=32631 >


Sample of incorrect function:

$a=\"\\t\";
$a=~tr/0123456789/0123456789/cd;
print $a;

Output:
9

The problem persists for all characters between \\x00 and \\x09 inclusive. 
The output contains 0-9 digit that replaced \\x00-\\x09 code. By the way, 
tr/0-9//cd works as expected.

# perl -v

This is perl, v5.8.5 built for i386-freebsd
<...>

The problem is reproductable on all 3 builds of perl 5.8.5  I use in 
production.

With best regards, Aleksey Maksimov.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About