delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/16/10:10:34

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:mime-version
:content-transfer-encoding; q=dns; s=default; b=cAjMhMqW2/Qor2R5
DPFFpmeE3YUUEHii6a+WJBtEndSj70SJCvoAhYnAM2QSvRPW7RBu11cMXbRmZ8pL
rjn/tbd14uZtp9MITI/xM3z9dJgHhCjiJIDVXg8KMdxy2e958PV/VBgl5lyStkW+
ZsjyXSLkBds8LX0NXeoktIbnkOw=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:mime-version
:content-transfer-encoding; s=default; bh=dy7yz9+/D2rfe7MfnFKSiT
4x1AY=; b=C6dTe1LA0W+FpYydR9lumXj/Q/95MrpezVaAnC5qtJ88Z7Ful5zJKs
20UducsbyFpbui60mRK9Gn8C6WE/Kownz2YtvU4YJdFQ0hY6pM7AFpTdHD2aGF2U
w/ZLz0e7xtRGC5BPoTkRkc0X9NeRYnU/D7916ZppqCfp0muO+H5MI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-1.8 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,SPF_PASS autolearn=ham version=3.3.2 spammy=centric, announced, february, H*Ad:D*rogers.com
X-HELO: mga11.intel.com
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
X-ExtLoop1: 1
From: "Soegtrop, Michael" <michael DOT soegtrop AT intel DOT com>
To: Michel LaBarre <michel DOT labarre AT rogers DOT com>, "'cygwin'" <cygwin AT cygwin DOT com>
Subject: RE: 2.10.0: Cygwin now can not work well with a file in dos format.
Date: Sat, 16 Jun 2018 14:10:18 +0000
Message-ID: <0F7D3B1B3C4B894D824F5B822E3E5A17788014D3@IRSMSX102.ger.corp.intel.com>
References: <2bfeabde DOT 39a8 DOT 16403e31153 DOT Coremail DOT tuyanyi AT 163 DOT com> <0F7D3B1B3C4B894D824F5B822E3E5A177880092C AT IRSMSX102 DOT ger DOT corp DOT intel DOT com> <003101d40572$dcd479f0$967d6dd0$@rogers.com>
In-Reply-To: <003101d40572$dcd479f0$967d6dd0$@rogers.com>
x-ctpclassification: CTP_NT
x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGQ1YzU5OGItNDYyOS00M2UzLTgyZGQtMWQwMjczZWUxMWJlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiT2VxK1ZkaE5hc0JZMWkwWDVjZ2l2K2dqdlliSnArQVJjcnphRmlHTElLM0QrdmlQTE9YaTFvNFZ4aEN1c3V3ZyJ9
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id w5GEAXVY009660

Dear Michel,

>   1. Where in the release notes is this mentioned so that I can try to ensure that I
> find out about future changes?

As far as I can tell such things are announced here on this mailing list with subject "[ANNOUNCEMENT]". This specific change was announced here:

https://sourceware.org/ml/cygwin/2017-02/msg00152.html

You can search the mailing list for ANNOUCEMENT SED here:

https://cygwin.com/ml/cygwin/

>   2. Various "solutions" have been noted for gawk in related emails - all require
> minor but pervasive code changes.
>       Are there any similar solutions for the other tools besides scattering "tr" all
> over the place?

I haven't tried it but according to the release note above this depends on the mount type. It might help to mount your Windows text files in a mount with the text flag set. Binary files should still work on such mounts - as far as I can tell this mount flag has the effect that the binary / text flag to e.g. fopen makes a difference. If you have success with this, I would be interested to learn about it.

>       Also, I don't recall seeing related discussions in this mail-list.  Would these
> have taken place in
>       another Cygwin-developer-focused mail-list?

It has been discussed extensively in February and June last year on this list.

>   3. Is there any chance of Cygwin providing a pervasive file behaviour control
> switch for all the affected tools
>      that have been used generally for text rather than binary data handling?

As stated above, the intended mechanism seems to be to give this hint in the mount tables. You might also want to read through the lengthy discussion on the topic in June last year.

>   4. Would MSYS be better for those of us who are trying to supplement
> Windows rather than running Linux
>        on Windows?

I am building complex Linux centric projects for MinGW on Cygwin. Although this is the intended purpose of MSYS2, for me Cygwin works better. Most of the configure and makefiles I have to handle didn't go very far with MSYS2, while with Cygwin I needed only very minor patches here and there. Maybe things changed meanwhile - I tested this about 3 years ago and am happy with Cygwin since then. But I can say that I run CI tests with the latest Cygwin version daily and the SED change was the only Cygwin change which broke my builds in the last 3 years. It could definitely be substantially worse. So while one can discuss some decisions of the Cygwin team, it appears to me that they took the right decisions.

Best regards

Michael

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019