This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: /dev/clipboard: No O_TEXT conversion if write() is used
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 24 Oct 2013 14:02:44 -0400
- Subject: Re: /dev/clipboard: No O_TEXT conversion if write() is used
- Authentication-results: sourceware.org; auth=none
- References: <52695C49 dot 30505 at t-online dot de>
- Reply-to: cygwin at cygwin dot com
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