develooper Front page | perl.perl5.porters | Postings from July 2008

Re: [perl #57040] pos() function doesn't handle unicode well

Thread Previous | Thread Next
From:
Eric Brine
Date:
July 17, 2008 14:21
Subject:
Re: [perl #57040] pos() function doesn't handle unicode well
Message ID:
f86994700807171255u17f05461u83729e689bee1b4@mail.gmail.com
On Thu, Jul 17, 2008 at 6:42 AM, via RT Marcela Maslanova
<perlbug-followup@perl.org> wrote:
> # New Ticket Created by  Marcela Maslanova
> # Please include the string:  [perl #57040]
> # in the subject line of all future correspondence about this issue.
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57040 >


A simpler test that demonstrates the problem violently:
>perl -e"$_=qq{\x{2660}\t}; s/\t/       qq{\t}/ge"

>perl -e"$_=qq{\x{2660}\t}; s/\t/pos(); qq{\t}/ge"
Malformed UTF-8 character (unexpected end of string) in match position
at -e line 1.

ActivePerl 5.10.0.

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