X-Recipient: archive-cygwin@delorie.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:message-id:date:from:to:subject:references
	:content-type; q=dns; s=default; b=lltMOve2QAxzhv1HWaa4LKdItBOFc
	EjGE8Zqf4qer4rB+MxrGaRMhsyUDxFe5eycMrvINb5FaNTwIsj466bfZFGJlSIlS
	cYRje8fpdN4gdv5dB5vCmHxr5pkDOu61Dpi7K6v0RB0/Qmc+enLkCVs6mwNWjzdP
	BVrYfrk/6jzm10=
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:message-id:date:from:to:subject:references
	:content-type; s=default; bh=sV6x8lzLXw+Pxaim2RyFgyaaGK0=; b=MtU
	hw9nYM2uTlb9ErxnFTXK8EvlAd2ATlxxzySQT+BOqtinA2SgHucLGS0BDj9fGZZC
	5DdD08jTHwjuAxywxlDkE8Zc1gC+dV2XE9Z6pheApHuKR5nXOUZpyqx1TVkQdOzC
	umn0hTkcraKqiiftY9603ybFIPLFw+PEFoVuX1b8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=honestly, RELEASE, H*M:google
X-HELO: mail-ot0-f172.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:message-id:date:from:to:subject:references         :user-agent;        bh=13fYKJN82gvzLMJAaKiPf7oZEwgUY54isSRfc1qf3Qo=;        b=MOZIofD4fACKyHIOatzSxG0vQ9PqkSm2UMx1qZ4bn9p2LeO1hstXCVIKvs9iuI7gIy         EMKh5S8TAB4ES6EAVxgVhCvOgVpsis5zjGwDcYctJ5nnvFA+9dVqtQXcrEk5ebX2/anN         lfRCNAGu6VSm9KCiR03m5Sj90MDnzcTq2naR0m8aAZYwlysFFe/PJZnRbfvBO3R3MZ4H         Q9uTwQZw8ERwA2rsH4GMiD+y6HlkZSI7en1ix72ivXSdEQhP/rUj+ca666fSsIWeu9Rj         hCuJBNghHL3zAAtXjW59ot7FPzHd0S/oxz2+dyFILZjmiFtaXMQ07b4WxUoHa1gPwTUg         s9xw==
X-Gm-Message-State: AFeK/H0sgrlbLm+lur+39/d3vKPfJoEp8WbTAONsHNizH4/XnSILUAXrgXIGja+T0G0YTg==
X-Received: by 10.157.51.50 with SMTP id f47mr12953707otc.192.1489897381898;        Sat, 18 Mar 2017 21:23:01 -0700 (PDT)
Message-ID: <58ce07a5.4fabca0a.f92b8.e4a4@mx.google.com>
Date: Sat, 18 Mar 2017 21:23:01 -0700 (PDT)
From: Steven Penny <svnpenn@gmail.com>
X-Google-Original-From: Steven Penny
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.7.0-0.1
References: <20170203083947.GN8905@calimero.vinschen.de>
Content-Type: text/plain; charset=utf8; format=flowed
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

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.


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

