Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-perl
Navigation:
Lists: gentoo-perl: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-perl@g.o
From: "Subramani R" <subramani95@...>
Subject: "Malformed UTF-8 character...." warning in perl-5.8.8-r4
Date: Tue, 22 Jan 2008 00:24:03 +0530
Hi all,

I installed the latest version of Perl (perl-5.8.8-r4) in my system
and ran the following code:-
<code>
#!/usr/bin/perl -T
use warnings;
my @w;
local $SIG{__WARN__}=sub{push @w,"@_"};
my $c=qq(\x{DF});
if ($c=~/${c}|\x{100}/)
{
 print "ASCII pattern that really is utf8";
}
print "@w\n";
if (@w==0)
{
    print "No warnings";
}
</code>

I am getting the following output:-
"Malformed UTF-8 character (unexpected non-continuation byte 0x7c,
immediately after start byte 0xdf) in regexp compilation at ./test.pl
line 6."

As per this reference
(http://search.cpan.org/~nwclark/perl-5.8.8/pod/perl588delta.pod) this
warning should not come.
<snip>
"Some case insensitive matches between UTF-8 encoded data and 8 bit
regexps, and vice versa, could give malformed character warnings.
These have been fixed by Dave Mitchell and Yves Orton."
</snip>

I don't have any clue, why I am getting this warning? I tried the same
code in "perl-5.8.8-r2" also and got the same output.

Any pointers/clues/* would be helpful.

Thanks in advance,
--- R * Subramani ---
-- 
gentoo-perl@g.o mailing list


Navigation:
Lists: gentoo-perl: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Additions to perl-experimental
Next by thread:
Nice place to buy cheap meds
Previous by date:
Re: Additions to perl-experimental
Next by date:
Nice place to buy cheap meds


Updated Jun 17, 2009

Summary: Archive of the gentoo-perl mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.