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

[perl #8765] non-english letters and non-greedy subpatterns, like this one

From:
Michael G Schwern via RT
Date:
July 15, 2005 01:04
Subject:
[perl #8765] non-english letters and non-greedy subpatterns, like this one
Message ID:
rt-3.0.11-8765-117437.13.0101921898556@perl.org
> [RT_System - Mon Mar 04 21:30:58 2002]:
> 
> This is an alternative and it confirmes the bug in 5.6.1:
> 
> % /usr/local/perl-5.6.1/bin/perl -le '
> $_ = "\xF9 \xF6";
> print /\xF9\s+?\xF6/ ? "ok" : "not ok";
> '
> not ok
>  
> The bug is fixed in perl-5.7.3 and the fix will be in 5.8.0 and 5.6.2.

Confirmed broken in 5.6.2.

$ perl5.6.2 -le '
> $_ = "\xF9 \xF6";
> print /\xF9\s+?\xF6/ ? "ok" : "not ok";
> '
not ok

Confirmed fixed in 5.8.6.

$ perl -le '
> $_ = "\xF9 \xF6";
> print /\xF9\s+?\xF6/ ? "ok" : "not ok";
> '
ok

Resolved.



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