This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /dev/clipboard pasting with small read() buffer


On 17.08.2012 11:22, Corinna Vinschen wrote:
...
Anyway, my updated patch (using MB_LEN_MAX) proposes a change here as well.
Thanks.  I dropped the hint that 4 is enough.  I'm not so sure about
that.  Linux, for instance, defines MB_LEN_MAX as 16.
SunOS defines it as 5. http://www.kernel.org/doc/man-pages/online/pages/man3/MB_LEN_MAX.3.html says in glibc it is typically 6 (which would be needed for original UTF-8 covering 31-bit ISO-10646).

Other than that, patch applied.
Thanks
Thomas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]