From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25428 invoked by alias); 20 Mar 2017 19:06:19 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25387 invoked by uid 89); 20 Mar 2017 19:06:18 -0000 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 Received: from mail-it0-f66.google.com (HELO mail-it0-f66.google.com) (209.85.214.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Mar 2017 19:06:17 +0000 Received: by mail-it0-f66.google.com with SMTP id 190so8652266itm.3 for ; Mon, 20 Mar 2017 12:06:18 -0700 (PDT) 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) Received: from [192.168.0.6] (d27-96-48-76.nap.wideopenwest.com. [96.27.76.48]) by smtp.gmail.com with ESMTPSA id i195sm5599177ita.17.2017.03.20.12.06.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Mar 2017 12:06:15 -0700 (PDT) Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.7.0-0.1 To: cygwin@cygwin.com References: <20170203083947.GN8905@calimero.vinschen.de> <58ce07a5.4fabca0a.f92b8.e4a4@mx.google.com> From: cyg Simple Message-ID: Date: Mon, 20 Mar 2017 19:06:00 -0000 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> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00216.txt.bz2 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 > 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