develooper Front page | perl.perl5.porters | Postings from August 2003

Re: Storable Error

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
August 21, 2003 13:50
Subject:
Re: Storable Error
Message ID:
20030821214946.S558@plum.flirble.org
On Tue, Aug 12, 2003 at 05:36:47AM +0530, Abhijit Menon-Sen wrote:
> Suggestions for testing this are still welcome, and so are suggestions
> to work around the problem in Storable, since it exists in at least a
> few released and installed versions of Perl. I could just discard the
> unannounced HEK_WASUTF8 flag silently, but that seems a bit unwise.

/usr/local/bin/perl5.8.0 -MStorable=freeze -e 'chop ($a = "\x{df}".chr 256); %a = ("\x{df}", 1); $a{$a}++; freeze \%a'

which on a vanilla 5.8.0 compile with -DDEBUGGING gives:

Assertion flags == 0 failed: file "Storable.xs", line 2342 at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_freeze.al) line 282, at -e line 1

Abhijit and I have been chatting on IRC, and we think that the bug can
be solved with a new CPAN release. We don't lose data, just the flag
that restores the internal representation of the Latin 1 string to utf8
(rather than bytes). Note, strings with characters >= 256 aren't affected
by this one.

I think that only Andreas will notice (it was the feature put in for him),
and he's probably running maint already. :-)


Nicholas Clark

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