chop fails on decoded string with trailing nul

2005-07-13 Thread Jonathan Hankins
Hi, I ran into this, and wondered if it is a bug. I have tested on perl 5.8.4 with Encode.pm version 1.99_01 (from Debian package) and 2.10 (from CPAN). Basically, if I take a string with a trailing nul, encode it (to any encoding, even "ascii"), decode it, then chop it, chop returns undef and t

chop fails on decoded string with trailing nul

2005-07-13 Thread Jonathan Hankins
[Apologies if this is a duplicate posting -- still learning my way around Gnus] Hi, I ran into this, and wondered if it is a bug. I have tested on perl 5.8.4 with Encode.pm version 1.99_01 (from Debian package) and 2.10 (from CPAN). Basically, if I take a string with a trailing nul, encode it (