public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Perl Term::ReadKey from empty scalar Segfaults under cygwin only (1.7.32 x86_64)
Date: Tue, 25 Aug 2015 09:17:00 -0000	[thread overview]
Message-ID: <55DC3284.7010003@gmail.com> (raw)
In-Reply-To: <59C49FE16E416F46873F86D530DA80520BD519@ExchangeServer.internal.ogtip.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

  reply	other threads:[~2015-08-25  9:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-25  8:48 Luke Goodsell
2015-08-25  9:17 ` Marco Atzeri [this message]
2015-08-25  9:43   ` Luke Goodsell
2015-08-25  9:40 ` Achim Gratz
2015-08-25  9:52   ` Luke Goodsell
2015-08-25 12:06     ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55DC3284.7010003@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).