Cygwin select() issues and improvements

John Hood cgull@glup.org
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.

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



More information about the Cygwin-patches mailing list