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:
Reverend Chip
Date:
November 26, 2010 16:15
Subject:
Re: "perl: utf8.c:1997: Perl_swash_fetch: Assertion `klen <= sizeof(PL_last_swash_key)'failed." [5.12.1]
Message ID:
4CF04D96.7090105@gmail.com
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.


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