develooper Front page | perl.unicode | Postings from July 2011

Encode question

Thread Next
Dave Saunders
July 7, 2011 00:31
Encode question
Message ID:
Dear Encode Developers,

   I am migrating a perl application from Solaris 2.10 to Linux Fedora Core 
14 (, which is running perl 5.12.3.  The app uses 
SDBM and I'm encountering a problem which looks related to the
Encode module (which is at 2.39).

The error message is:

panic: sv_setpvn called with negative strlen at line 21.

and this URL led me to Encode:

I ran the simple test at the bottom of the web page:

binmode STDOUT, ':encoding(cp1250)';
print( ( "a" x 1023 ) . "\x{0378}" );

and got the same output:

"\x{0340}" does not map to cp1250 at line 2.
panic: sv_setpvn called with negative strlen at line 2.

I looked at CPAN:

and read the Changes file, but don't see Bug 65541 discussed.

Has this problem been solved, or is it being worked on?
Is there a work-around for SDBM files (other than not using SDBM)?

Thanks very much for your help,
David Saunders

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