summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2012-08-18 12:28:32 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2012-08-18 12:28:32 +0100
commit4cc026083a62a3e603a429b3c13df20d575ea52a (patch)
tree9dfc2dc9631aca61ddf4f6d616edbb9f3bb72805
parent4eab039da16f1fc2e246f94a6af541703e6a7e9b (diff)
downloadperl-4cc026083a62a3e603a429b3c13df20d575ea52a.tar.gz
Don't use /dev/tty if it happens to exist on Windows
This fixes CPAN RT#79001 and CPAN RT#79064.
-rw-r--r--dist/Term-ReadLine/lib/Term/ReadLine.pm4
-rw-r--r--pod/perldelta.pod6
2 files changed, 8 insertions, 2 deletions
diff --git a/dist/Term-ReadLine/lib/Term/ReadLine.pm b/dist/Term-ReadLine/lib/Term/ReadLine.pm
index 3770df0552..9d176d7f7b 100644
--- a/dist/Term-ReadLine/lib/Term/ReadLine.pm
+++ b/dist/Term-ReadLine/lib/Term/ReadLine.pm
@@ -233,7 +233,7 @@ sub findConsole {
my $console;
my $consoleOUT;
- if (-e "/dev/tty") {
+ if (-e "/dev/tty" and $^O ne 'MSWin32') {
$console = "/dev/tty";
} elsif (-e "con" or $^O eq 'MSWin32') {
$console = 'CONIN$';
@@ -327,7 +327,7 @@ sub Features { \%features }
package Term::ReadLine; # So late to allow the above code be defined?
-our $VERSION = '1.09';
+our $VERSION = '1.10';
my ($which) = exists $ENV{PERL_RL} ? split /\s+/, $ENV{PERL_RL} : undef;
if ($which) {
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index f20edd5ff3..bd0de17a21 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -248,6 +248,12 @@ resolved, and <getservbyname()> is no longer called when the port is specified.
=item *
+L<Term::ReadLine> has been upgraded from version 1.09 to 1.10. This fixes the
+use of the B<cpan> and B<cpanp> shells on Windows in the event that the current
+drive happens to contain a F<\dev\tty> file.
+
+=item *
+
L<Time::Local> has been upgraded from version 1.2000 to 1.2300. Seconds values
greater than 59 but less than 60 no longer cause C<timegm()> and C<timelocal()>
to croak.