From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120552 invoked by alias); 1 Oct 2016 02:14:06 -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 120381 invoked by uid 89); 1 Oct 2016 02:14:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_00,BODY_8BITS,GARBLED_BODY,LIKELY_SPAM_SUBJECT,SPF_PASS autolearn=no version=3.3.2 spammy=Manager, 8000 X-HELO: Marvin.c0d.org Received: from Marvin.c0d.org (HELO Marvin.c0d.org) (46.165.225.232) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Oct 2016 02:13:52 +0000 Received: from marvin (Marvin.c0d.org [127.0.0.1]) by Marvin.c0d.org (Postfix) with ESMTP id B21B11922BD for ; Sat, 1 Oct 2016 05:13:49 +0300 (MSK) Authentication-Results: marvin.c0d.org (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=vanav.org Received: from Marvin.c0d.org ([127.0.0.1]) by marvin (marvin.c0d.org [127.0.0.1]) (amavisd-new, port 10026) with LMTP id rdVfTFwDo9Qo for ; Sat, 1 Oct 2016 05:13:49 +0300 (MSK) Received: from [127.0.0.1] (localhost [127.0.0.1]) by Marvin.c0d.org (Postfix) with ESMTPSA id 3F3B31922BA for ; Sat, 1 Oct 2016 05:13:49 +0300 (MSK) Date: Sat, 01 Oct 2016 02:14:00 -0000 From: Ivan Vanyushkin Message-ID: <123291584.20161001051347@vanav.org> To: cygwin@cygwin.com Subject: Cygwin 2.6.0: unreadable UTF-8 in Windows console MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00000.txt.bz2 Something has changed in version 2.6.0, and now UTF-8 text can't be displayed in Windows console (cmd). 1. Create a file "test.txt" with non-ASCII text in UTF-8 encoding. 2. Run "cmd". 3. Run: C:\Cygwin\bin\cat test.txt ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒ 8000 ▒▒. ▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒. Non-ASCII text is not readable. Older Cygwin 2.5.2 has no such issue. 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 C:\Cygwin\bin\locale LANG= LC_CTYPE="C.UTF-8" LC_NUMERIC="C.UTF-8" LC_TIME="C.UTF-8" LC_COLLATE="C.UTF-8" LC_MONETARY="C.UTF-8" LC_MESSAGES="C.UTF-8" LC_ALL= Same issue with any other commands like "grep", or with utilities built and 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 can be correctly displayed natively (run: "type test.txt"), but Cygwin "cat" still has the same issue. How should I display UTF-8 now? Thank you. -- 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