This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.7.0-0.1
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 18 Mar 2017 21:23:01 -0700 (PDT)
- Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.7.0-0.1
- Authentication-results: sourceware.org; auth=none
- References: <20170203083947.GN8905@calimero.vinschen.de>
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