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

Re: Storable Error

Thread Previous | Thread Next
Nicholas Clark
August 21, 2003 13:50
Re: Storable Error
Message ID:
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/ (autosplit into blib/lib/auto/Storable/ 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About