The following report was from perlbug originally. It does not appear to be a problem with CPAN, since the problem does not occur with Term::ReadLine::Gnu. It is repeatable with CPAN and Term::ReadLine::Perl.
The following components were used:
CPAN 0.70
Term::ReadLine::Perl 1.0203
In the following tests start the CPAN shell and then press Ctrl-C, followed by
Ctrl-D
== 5.8.0:
% perl-5.8.0 -MCPAN -eshell
Show quoted text
cpan>
Caught SIGINT
Show quoted textcpan> Use of uninitialized value in ord at
/home/stas/perl/5.8.0/lib/site_perl/5.8.0/Term/ReadLine/readline.pm line 1481.
Show quoted textcpan>
prints one warning and returns the prompt
== blead perl (and 5.8.1-tobe):
% perl-blead -MCPAN -eshell
Show quoted textcpan>
Caught SIGINT
Show quoted textcpan> Use of uninitialized value in ord at
/home/stas/perl/5.8.0/lib/site_perl/5.8.0/Term/ReadLine/readline.pm line 1481.
[...]
results in endless loop consisting of the last line
same problem for 5.8.1-tobe
Certainly, the warning is probably a problem in CPAN.pm, but the endless loop
appearing only the blead/maint versions doesn't sound good.