Perl Term::ReadKey from empty scalar Segfaults under cygwin only (1.7.32 x86_64)

Luke Goodsell Luke.Goodsell@ogt.com
Tue Aug 25 09:43:00 GMT 2015


Hi Marco,

>   $ perl -MTerm::ReadKey -E 'my $input = "\0" ; open(my $stdin, "<", \$input) or die "failed to open: $!"; local *STDIN = $stdin; ReadMode "raw"; my $response = ReadKey(1, \*STDIN); ReadMode "normal"; print "Got \"$response\"\n";'
> Got ""

I get:

> Got " "

... whereas I would expect an empty string.

Kind regards,
Luke

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list