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:
Eric Brine
Date:
November 27, 2010 22:48
Subject:
Re: "perl: utf8.c:1997: Perl_swash_fetch: Assertion `klen <=sizeof(PL_last_swash_key)' failed." [5.12.1]
Message ID:
AANLkTi=By5gPA4SnGjsJ4c+_Ee5OQ7iUtGD2awdmDxcd@mail.gmail.com
On Sat, Nov 27, 2010 at 9:01 AM, Tom Christiansen <tchrist@perl.com> wrote:

> Could you please tell
> me how I *should* then be writing the unless test and block at
> the bottom of this code snippet:
>


>        # fixes "the Unicode bug"
>        unless (utf8::is_utf8($_)) {
>            $_ = decode("iso-8859-1", $_);
>        }
>
>
utf8::upgrade($_);

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