This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Perl Term::ReadKey from empty scalar Segfaults under cygwin only (1.7.32 x86_64)
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 25 Aug 2015 11:16:52 +0200
- Subject: Re: Perl Term::ReadKey from empty scalar Segfaults under cygwin only (1.7.32 x86_64)
- Authentication-results: sourceware.org; auth=none
- References: <59C49FE16E416F46873F86D530DA80520BD519 at ExchangeServer dot internal dot ogtip dot com>
On 25/08/2015 10:48, Luke Goodsell wrote:
perl -MTerm::ReadKey -e 'my $input = ""; 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";
I will bet in a lack of string end somewhere.
$ 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 ""
--
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