This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: Cygwin select() issues and improvements
- From: John Hood <cgull at glup dot org>
- To: Thomas Wolff <towo at towo dot net>
- Cc: cygwin-patches at cygwin dot com
- Date: Sun, 14 Feb 2016 13:02:56 -0500
- Subject: Re: Cygwin select() issues and improvements
- Authentication-results: sourceware.org; auth=none
- Authentication-results: glup.org; dmarc=none header.from=glup.org
- References: <56C03624 dot 1030703 at glup dot org> <56C07316 dot 8070001 at towo dot net>
I hadn't checked UTF-8 input before, but yes, it's the same problem. Your test program and mine are very similar.
Regards,
--jh
> On Feb 14, 2016, at 7:29 AM, Thomas Wolff <towo@towo.net> wrote:
>
>> Am 14.02.2016 um 09:09 schrieb john hood:
>> [I Originally sent this last week, but it bounced.]
>>
>> Various issues with Cygwin's select() annoyed me, and I've spent some
>> time gnawing on them.
>>
>> * With 1-byte reads, select() on Windows Console input would forget
>> about unread input data stored in the fhandler's readahead buffer.
>> Hitting F1 would send only the first ESC character, until you released
>> the key and another Windows event was generated. (one-line fix, though
>> I'm not sure it's appropriate/correct)
>>
>> * ...
> If that also solves the UTF-8 byte splitting problem https://cygwin.com/ml/cygwin/2014-12/msg00118.html that would be great, see test program attached there.
> Thomas