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

Re: [perl #24526] Combination of rindex() and index() is non-deterministic with LANG=en_GB.UTF-8

Thread Previous
From:
Dave Mitchell
Date:
February 29, 2004 11:04
Subject:
Re: [perl #24526] Combination of rindex() and index() is non-deterministic with LANG=en_GB.UTF-8
Message ID:
20040229190447.GA76@fdisolutions.com
On Wed, Nov 19, 2003 at 04:23:12PM -0000, martin@xanalys.com (via RT) wrote:
> Calling index() after calling rindex() when LANG is en_GB.UTF-8 can give
> non-deterministic results.  In particular, index() will return the wrong value
> unless a dummy call to index() with position 0 is made first.

Thanks for the report, and sorry for the late reply. Perl 5.8.0 and .utf8
locales didn't work together well; this has been fixed in Perl 5.8.1
onwards.

Regards,

Dave.

-- 
Spock (or Data) is fired from his high-ranking position for not being able
to understand the most basic nuances of about one in three sentences that
anyone says to him.
    -- Things That Never Happen in "Star Trek" #19

Thread Previous


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