delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/20/15:06:36

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:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=BEsOV3oYuxF9tbLd
76q5Ed8QfRN5+NMkgwxysyTei2eOmFOMYZK26v3QN3KKJp6gWlA01aC2LkL0p8z0
209c/oMwe3T3PVubTxVMHZp3dsMvz+QDIB5ohx3ynb38jLU+zqoXf+vEic0lS3Cb
nRFSK4oxIxgry0vGWPOZ0FjC9lQ=
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:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=EY/r+MNMehtrozrQBt46qA
xPgHc=; b=dMErbnCCTngpii6gqp6oya5/GSxz8xWfY5Xj3uwsnGb8HLJgJHcex5
ONPjC+QAH4sboLFx5ZJro2Z/AKBT6Gf4npbM+x3muy8vDYiz6VHztO3zT8roi7zL
sSxVMfHIsf+bzyGT49p9DAKkSZRKxr94woYlH0OcRZ5Aej26HgUUM=
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.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=CMD, mintty, cyg, Hx-spam-relays-external:209.85.214.66
X-HELO: mail-it0-f66.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=G7zNsWoCoF5D5K9ScPoFl8Fo7Vv/HGy29CfO7ZWqZlQ=; b=mgxMbjMqkP0NC7+04/bKhNEwtK8q3xQ3ieTMuOYzjo8JRAFCplJTsQ4p6yl0vjefBY SYMSJOFqAj01OcQ4Rsy+hGnpOmPaT10hornIN0PQZRkSz9q5DwNY7x0nS1DIHe/Cx9bw hfDd6aUysMxApwQv/dBzdYtSXAJ6uSdSGDUxDEk9i2+Y7zyvWW0zArXP1IDg7rlo8JTj EDZHIORpbnzN1YWHklV2nufkKGeMTmOAKZZlQ1SENw2oZvBTXYOYBPETKt6DUOmDQpOK BN2ZynLnMp/Z6ZzpjLtDB7UmWAeeRs1BhteZ1YrTuMnkI6uqsEuWT9DxUTbtpdy81SA1 7pLA==
X-Gm-Message-State: AFeK/H1t2fIgA4YmE3/WNEIbghY1eoF2qwTtuLK9pFEM6UovblkYANOP3fOcGkZTwqh+kA==
X-Received: by 10.36.153.197 with SMTP id a188mr11474899ite.5.1490036776372; Mon, 20 Mar 2017 12:06:16 -0700 (PDT)
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.7.0-0.1
To: cygwin AT cygwin DOT com
References: <20170203083947 DOT GN8905 AT calimero DOT vinschen DOT de> <58ce07a5 DOT 4fabca0a DOT f92b8 DOT e4a4 AT mx DOT google DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <be3ac5a3-741a-ce02-8ff5-14955d9590da@gmail.com>
Date: Mon, 20 Mar 2017 15:06:26 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <58ce07a5.4fabca0a.f92b8.e4a4@mx.google.com>
X-IsSubscribed: yes

On 3/19/2017 12:23 AM, Steven Penny wrote:
> On Fri, 3 Feb 2017 09:39:47, Corinna Vinschen wrote:
>> Why are you switching to cp 65001, btw?  It's completely unnecessary
>> for utf-8 to work in the Windows console.  Just stick to the default.
> 
> Sorry for delayed response. I knew I had a reason for this, but honestly
> forgot
> what it was. Here is the reason:
> 
>    $ cat omega.c
>    #include <stdio.h>
>    int main() {
>      printf("Ω\n");
>    }
> 
>    $ x86_64-pc-cygwin-gcc -o cygwin.exe omega.c
>    $ x86_64-w64-mingw32-gcc -o mingw32.exe omega.c
>    $ chcp.com 65001
>    Active code page: 65001
> 
>    $ ./cygwin.exe
>    Ω
> 
>    $ ./mingw32.exe
>    Ω
> 
>    $ chcp.com 437
>    Active code page: 437
> 
>    $ ./cygwin.exe
>    Ω
> 
>    $ ./mingw32.exe
>    Ω
> 
> So everything is normal until you run a mingw32 program with the wrong code
> page. You would never notice this with cygwin programs because as you
> can see
> they work with either code page.

This really isn't a Cygwin issue as I see it.  What occurs if you run
your mingw32.exe in a CMD command window?  This may be a mintty issue
but certainly not because of Cygwin itself.  But even the mintty case is
dependent on the results you see in CMD.

-- 
cyg Simple

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