From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36176 invoked by alias); 19 Oct 2016 11:45:30 -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 34520 invoked by uid 89); 19 Oct 2016 11:45:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-96.2 required=5.0 tests=AWL,BAYES_00,BODY_8BITS,GARBLED_BODY,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,LIKELY_SPAM_SUBJECT,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=lc_time, LC_TIME, LC_MONETARY, lc_all X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Oct 2016 11:45:21 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id A7E99721E282F for ; Wed, 19 Oct 2016 13:45:17 +0200 (CEST) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 039BF5E01E8 for ; Wed, 19 Oct 2016 13:45:17 +0200 (CEST) Received: by calimero.vinschen.de (Postfix, from userid 500) id E6E76A803CB; Wed, 19 Oct 2016 13:45:16 +0200 (CEST) Date: Wed, 19 Oct 2016 12:01:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Cygwin 2.6.0: unreadable UTF-8 in Windows console Message-ID: <20161019114516.GE4801@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <123291584.20161001051347@vanav.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5xSkJheCpeK0RUEJ" Content-Disposition: inline In-Reply-To: <123291584.20161001051347@vanav.org> User-Agent: Mutt/1.7.0 (2016-08-17) X-SW-Source: 2016-10/txt/msg00229.txt.bz2 --5xSkJheCpeK0RUEJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2183 On Oct 1 05:13, Ivan Vanyushkin wrote: > Something has changed in version 2.6.0, and now UTF-8 text can't be displ= ayed in Windows console (cmd). >=20 > 1. Create a file "test.txt" with non-ASCII text in UTF-8 encoding. > 2. Run "cmd". > 3. Run: >=20 > C:\Cygwin\bin\cat test.txt > =E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92= =E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92 = =E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2= =96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92 =E2=96=92=E2=96=92=E2= =96=92=E2=96=92 =E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92 8000= =E2=96=92=E2=96=92. =E2=96=92=E2=96=92=E2=96=92=E2=96=92 =E2=96=92=E2=96= =92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92= =E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2= =96=92=E2=96=92=E2=96=92=E2=96=92 =E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2= =96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92=E2=96=92. >=20 > Non-ASCII text is not readable. Older Cygwin 2.5.2 has no such issue. >=20 > C:\Cygwin\bin\uname -a > CYGWIN_NT-10.0 PCName 2.6.0(0.304/5/3) 2016-08-31 14:32 x86_64 Cygwin >=20 > C:\Cygwin\bin\locale > LANG=3D > LC_CTYPE=3D"C.UTF-8" > LC_NUMERIC=3D"C.UTF-8" > LC_TIME=3D"C.UTF-8" > LC_COLLATE=3D"C.UTF-8" > LC_MONETARY=3D"C.UTF-8" > LC_MESSAGES=3D"C.UTF-8" > LC_ALL=3D >=20 > Same issue with any other commands like "grep", or with utilities built a= nd run under Cygwin 2.6.0. > Same issue in other Windows consoles, like ConEmu or FAR Manager. > If I change Windows console encoding to UTF-8 (run: "chcp 65001"), file c= an be correctly displayed natively > (run: "type test.txt"), but Cygwin "cat" still has the same issue. >=20 > How should I display UTF-8 now? I applied a patch to fix this regression and uploaded a developer snapshot with this change to https://cygwin.com/snapshots/ Please test. Just exchanging the Cygwin DLL is sufficient, no need to install the entire package. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --5xSkJheCpeK0RUEJ Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYB1zMAAoJEPU2Bp2uRE+g4IwQAJ5SbMx6UmnwX7zZ+8RxPOKL uVdLYkSHmRajiXu5NYfVTvEHt9wXptneU6G8+qTL8SkZco7v+faA8hUB/YR67zn/ fc/fTARgraKQ4dPLmmyDF0ATR1zs0ZmWlVMY0lBCm2lCW/oWC+gezyIDB3ksArUM hfCbAyLzUsQvcImRhH8pCW7Sawo65jdSzuoDbhFBuTkJ1Fs1xq4+3MXo52BjPJCp YFR5WlROAcPtv9CM8nspcbYiECGg00RLcqnATlHa0d0ZrL5wyCXdpkC7FX2yz6nJ hQJAfYwwieyRJQGU1LQZd7Vx72lWkEw1odVJAnGbcGxh57qKbDQ6Gav/3b+W0XdT cdTsOkDuTsYqN1vYC9hTmjeBrC7VK+BAmMvzUEb5bmnjVl5TfRDU9f64bnoUG7Kj 1dOipBTc/Lz1fcVuwapmDTdcwzEzw4SPh2+ks8xqSIRHmOK4Y2vugR6n1TBc6tIe wJ/rvgQPhrkShLVMLy5xoexxrcXvtz4fwUVLUwGZ3LYlGFHoMpAwFbWO4NAA74rE YrPgvIFcLW+JxOArvV/MtH96DwmDgKOperJo4+FHxpIImI28cJwXpcK0pIwn1yNt 5ors4QJ6BnTL9QmQ7m+GKe66CZ9ysrK2QwqOrdlytzoFeRJLdmP3xpZ0n21HLY3T E/s66Lsa9qpegpfDBIDb =v6cR -----END PGP SIGNATURE----- --5xSkJheCpeK0RUEJ--