public inbox for gentoo-perl@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Subramani R" <subramani95@gmail.com>
To: gentoo-perl@lists.gentoo.org
Subject: [gentoo-perl] "Malformed UTF-8 character...." warning in perl-5.8.8-r4
Date: Tue, 22 Jan 2008 00:24:03 +0530	[thread overview]
Message-ID: <95a1084b0801211054w6cd9c0bbo8634cf11f6929c86@mail.gmail.com> (raw)

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@lists.gentoo.org mailing list



                 reply	other threads:[~2008-01-21 18:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=95a1084b0801211054w6cd9c0bbo8634cf11f6929c86@mail.gmail.com \
    --to=subramani95@gmail.com \
    --cc=gentoo-perl@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox