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
November 27, 2010 02:28
Re: "perl: utf8.c:1997: Perl_swash_fetch: Assertion `klen <=sizeof(PL_last_swash_key)' failed." [5.12.1]
Message ID:
On 27 November 2010 01:15, Reverend Chip <> 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?


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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About