delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/06/19/12:38:43

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:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=rZbhaVXhtHA2aZwa
Pu0z+I9hH2+hgUIUun2m2wNHrWnadR9Q+Um+KIm9EXN0oIM7FEfJRGYPKZ/7XGP7
ZBc14fMeqsj6+wKc3HP1Wm6ngugicRe/ob37uGPKAR1HGUnGZyfDEj8y35dHxe/t
UrCP8NJU2EKaskzEuXq0WCFdL/I=
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:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=fEdxwIkf7Lx+7zxtaWC5Su
tBjiE=; b=mgdG2/0IS3m64O2mkArtoK31Oqd4TKniJ9KHZwWNZEsihzSnFsRKGj
H43OPDWJL9I7dEkrPL2907msB0jlQM9g55ujxO3d9W+i/ce19ZjozMKUbEwqPDlX
9Q7bJdW/gaYpTbPA03UDmBqtahajhHlCUwZilr4g82EReL3Mw8D9I=
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.5 required=5.0 tests=AWL,BAYES_50,EXECUTABLE_URI,KAM_EXEURI,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=kenneth, Saving, Kenneth, Nellis
X-HELO: out4-smtp.messagingengine.com
X-ME-Sender: <xms:Av5HWTiT8VL02FARMtaRv4OwydK37hX-GOfqBVboxwf1U7744hvmVA>
Subject: Re: Updated: setup (2.880)
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <088b3d84-aad8-4984-1892-b66b9714f343 AT dronecode DOT org DOT uk> <BN6PR2001MB1074EC3E693F81EDBB46E47FF1C40 AT BN6PR2001MB1074 DOT namprd20 DOT prod DOT outlook DOT com>
Cc: "Nellis, Kenneth" <Kenneth DOT Nellis AT conduent DOT com>
From: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Message-ID: <64836b8b-3a53-4cf6-cea4-b8406d10c9b9@dronecode.org.uk>
Date: Mon, 19 Jun 2017 17:38:22 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0
MIME-Version: 1.0
In-Reply-To: <BN6PR2001MB1074EC3E693F81EDBB46E47FF1C40@BN6PR2001MB1074.namprd20.prod.outlook.com>

On 19/06/2017 16:29, Nellis, Kenneth wrote:
> #!/bin/sh
> # From http://cygwin.com/ml/cygwin/2012-04/msg00714.html
> name=setup-x86_64.exe
> wget -O $name --quiet http://cygwin.com/$name || exit
> # ACL issues require some fixing up after wget
> chmod +x $name
> exit
> 
> ...but Windows complained about the file format when I tried to launch
> it. Then "file" told me...
> 
> $ file *.exe
> setup-x86_64.exe: gzip compressed data, from Unix
> $
> 
> ...so I added suffix .gz and then used (actually) WinZip to unzip
> it, and it created a working setup.exe.
> 
> So, is this new behavior? Is it to be expected going forward?

This behaviour is not expected or wanted.  I can't reproduce it, either.

> $ wget https://cygwin.com/setup-x86_64.exe
> --2017-06-19 17:31:56--  https://cygwin.com/setup-x86_64.exe
> Resolving cygwin.com... 209.132.180.131
> Connecting to cygwin.com|209.132.180.131|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 906771 (886K) [application/octet-stream]
> Saving to: ‘setup-x86_64.exe’
> 
> setup-x86_64.exe    100%[===================>] 885.52K   550KB/s    in 1.6s
> 
> 2017-06-19 17:31:58 (550 KB/s) - ‘setup-x86_64.exe’ saved [906771/906771]
> 
> $ file setup-x86_64.exe
> setup-x86_64.exe: PE32+ executable (GUI) x86-64, for MS Windows
> 
> $ xxd setup-x86_64.exe | head -1
> 00000000: 4d5a 9000 0300 0000 0400 0000 ffff 0000  MZ..............

Do you have something in your ~/.wgetrc to add an "accept-encoding: 
gzip" header or something?

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