Cygwin select() issues and improvements

John Hood
Sun Feb 14 18:03:00 GMT 2016

I hadn't checked UTF-8 input before, but yes, it's the same problem.  Your test program and mine are very similar.



> On Feb 14, 2016, at 7:29 AM, Thomas Wolff <> 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 that would be great, see test program attached there.
> Thomas

More information about the Cygwin-patches mailing list