/dev/clipboard: No O_TEXT conversion if write() is used
Christopher Faylor
cgf-use-the-mailinglist-please@cygwin.com
Thu Oct 24 18:04:00 GMT 2013
On Thu, Oct 24, 2013 at 07:43:37PM +0200, Christian Franke wrote:
>fopen("/dev/clipboard", "wt") sets O_TEXT, fprintf() does LF->CRLF
>conversion but write() does not. The latter is IMO a bug.
>
>fopen("/dev/clipboard", "wb") sets both O_TEXT and O_BINARY, fwrite()
>and write() do no conversion. The set_flags() call in
>fhandler_dev_clipboard::open() should possibly clear O_BINARY.
Since you are looking at source code what's stopping you from submitting
a patch?
--
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
More information about the Cygwin
mailing list