X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=oavawWCI48equg8agwQB5G366QPso/W0ZYuJHYyVmhXOMv0VtM1Yk Rx7Ubz3LFca7Mmo/NaGyxhzkGVAdWRbSwrCW8MEEDTrnqcnngCxca/AhKP1zmvds 7IexW9jZpqBROhTgho9SrQZPx4Mo/ispj4m1MCnI4LgDcn/963FnMc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=aoA2djsZyyW5zbn7fHam7ZcIX8A=; b=pUa6upl/ZJhqZHOz1r9K0k7+iEay sU5isNa0rVfdOxKIkCQrA04EzP9KF9aecqGOvYMY9yB1PeQWFOyOvzXUiDD7Nm0n Hq5Iaxf610keeWSjwaWM0TuB6iobpZQGoXRwAmJWPsrc3UshUghlmcQlDvzp4unN nHGHdPXhgFUdEPk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: mho-01-ewr.mailhop.org X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+L7b/nngfR9lEFy3Y4JuOP Date: Thu, 24 Oct 2013 14:02:44 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: /dev/clipboard: No O_TEXT conversion if write() is used Message-ID: <20131024180244.GA495@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <52695C49 DOT 30505 AT t-online DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52695C49.30505@t-online.de> User-Agent: Mutt/1.5.20 (2009-06-14) 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