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:in-reply-to :references:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=mxXprAZ82TdccShuALom2IaOKktMHlF1YUqfc01MEnl pOQ7KXUTplHZ4yMQiEi/cEedz4BS2j2VV2ZMTfOB2+nloQp3p3wJuo5ALMq2kMMc f+pwrAQX2/9H/Lbo1dUYroyDAuC2ow+92s317ekj12dtkcnapCr4NRCHN4GEXuk8 = 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:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=default; bh=CBXqqUaUE04XOEcKfz2V8DT+7vk=; b=O62K22YWUnx9j3Grg EX7MafV5kWupSz7cixNFwtYWB9DvBaEVh1fll5l1yLJkPdaVuLKp/O5gwFzXus9y YeXdepRoS0k7SkOBiDZ0o1h4466dJS+5lZ7sNYs7Y/kPstXRZMoe4NxmSgMcMlsr T8z5zsc/uinjsmWdkvUJl5qQbo= 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.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp10.mail.ru Date: Fri, 11 Sep 2015 20:20:57 +0300 From: Mikhail Usenko To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated: bash-4.3.42-3 Message-Id: <20150911202057.c8b93859ae3443187483f2fc@inbox.ru> In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E91BBF5@USA7109MB022.na.xerox.net> References: <20150911141729 DOT 0318b690929d91edcee250bd AT inbox DOT ru> <0D835E9B9CD07F40A48423F80D3B5A702E91BBF5 AT USA7109MB022 DOT na DOT xerox DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On Fri, 11 Sep 2015 12:48:59 +0000 Nellis, Kenneth <...> wrote: > FWIW, back in 2012 there was a discussion on this behavior of sed. > Apparently strong enough arguments were made to retain this behavior. > > http://sourceware.org/ml/cygwin/2012-02/msg00301.html > Hello, Ken. Thank you for the notice about that thread. I didn't know about it. As far as I understand that conversation, Paolo Bonzini changed the default open mode from 'rt' to 'r'. And as it can be observed from the sed's sources now there are to variants for the value of the global variable that is used to set file open mode for all read operations: "r" by default and "rb" if the -b command flag is set. So there is no text mode forcing as it has been and it is up to the underlying Cygwin level in which actual mode the file to be opened. I suppose a package maintainer can also choose which specific Cygwin library the application can be linked against to set the default open modes for it. We have a shell pipeline here (basically it is a pipe or a FIFO file) which is normally expected to be opened in binary mode (and according to Cygwin user's guide pipes, sockets and non-file devices are opened in binary mode). Therefore I think it looks like a bug. -- Mike -- 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