develooper Front page | perl.perl5.porters | Postings from November 2010

Re: "perl: utf8.c:1997: Perl_swash_fetch: Assertion `klen <=sizeof(PL_last_swash_key)' failed." [5.12.1]

Thread Previous | Thread Next
From:
demerphq
Date:
November 27, 2010 02:28
Subject:
Re: "perl: utf8.c:1997: Perl_swash_fetch: Assertion `klen <=sizeof(PL_last_swash_key)' failed." [5.12.1]
Message ID:
AANLkTim-LtXxU9RgdudwEH=kzhrRPu8yBfp1Z8KMZ=KN@mail.gmail.com
On 27 November 2010 01:15, Reverend Chip <rev.chip@gmail.com> wrote:
> On 11/26/2010 2:12 PM, Gisle Aas wrote:
>> On Nov 26, 2010, at 22:03 , Reverend Chip wrote:
>>> Hm, would malformed utf8 on stdin come in without validation?  I never
>>> do utf8 I/O so I don't know.
>> If you use the ':utf8' IO layer then perl just slaps the SvUTF8-flag on whatever it receives.
>> You need the ':encoding(utf8)' flag for perl to be more careful in its decoding.
>
> I think that finishes off the "internal data structure" argument, then.

In what respect?

Yves






-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


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