develooper Front page | perl.perl5.porters | Postings from May 2003

Re: [perl #22375] 'split'/'index' problem for utf8

From:
Nicholas Clark
Date:
May 29, 2003 15:48
Subject:
Re: [perl #22375] 'split'/'index' problem for utf8
Message ID:
20030529234833.Z1149@plum.flirble.org
On Thu, May 29, 2003 at 10:19:27PM -0000, Daniel Yacob wrote:

> I'm using Perl 5.8.0 on a Redhat 8 Linux:

The usual answer to that is "try running with LANG=C" (RedHat defaults
to utf8 locales which are causing trouble)
But your script doesn't look like that is the problem.
Annoyingly I can't replicate your described output on Debian with 5.8.0.

I see 2, (the "right" answer, if I understand things correctly) not 6
(what you see, and buggy)

Nicholas Clark



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