From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109635 invoked by alias); 25 May 2017 16:05:04 -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 109547 invoked by uid 89); 25 May 2017 16:05:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,LIKELY_SPAM_SUBJECT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=Kenneth, kenneth, H*f:sk:BN6PR20, relevance X-HELO: forward4j.cmail.yandex.net Received: from forward4j.cmail.yandex.net (HELO forward4j.cmail.yandex.net) (5.255.227.22) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 May 2017 16:05:01 +0000 Received: from smtp2m.mail.yandex.net (smtp2m.mail.yandex.net [77.88.61.129]) by forward4j.cmail.yandex.net (Yandex) with ESMTP id C6D1520CE0; Thu, 25 May 2017 19:05:02 +0300 (MSK) Received: from smtp2m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2m.mail.yandex.net (Yandex) with ESMTP id 3EEA52300DE2; Thu, 25 May 2017 19:05:01 +0300 (MSK) Received: by smtp2m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Pt0uISonCo-51aKwakn; Thu, 25 May 2017 19:05:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp2m.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 25 May 2017 15:57:14 -0000 Date: Thu, 25 May 2017 17:34:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <769693446.20170525185714@yandex.ru> To: "Nellis, Kenneth" , cygwin@cygwin.com Subject: Re: UTF-8 compatibility between Windows and Cygwin In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00411.txt.bz2 Greetings, Nellis, Kenneth! > I have (BOM-less) UTF-8 text files that I can read fine in > Cygwin, but not Windows. When I create text files in Windows > containing non-ASCII characters, I cannot read them in > Cygwin. I understand why, but wondering the best way to be > able to share text files across the two environments. Please provide `od -t x1z` of the file you are referring to. > I'm pretty sure that I want to keep my Cygwin LANG=C.UTF-8 > setting, Better use real language indication, and configure LC_ according to preferences. > but wondering what I can do on the Windows side for > compatibility and what are the side effects. On Windows side, you could actually use UTF-8. Without seeing the requested dump, I can only guess, though. > Currently > Windows's Command Prompt command chcp shows "Active code > page: 437". (Is that obsolete or even relevant?) Neither of the two, unless you consider relevance to the correct display of the results and other console-related operations. If you're often find yourself in a native console, I suggest you tweak LANG to match (i.e. LANG=ru_RU.CP866 for me) and only change it to .UTF-8 for MinTTY (it can help you with override, if you don't want to tweak your startup files). > One solution seems to be to put a BOM in each UTF-8 text > file; then the files read fine in both environments, but > that's not conveniently accomplished. That's hardly a solution, though. More like a workaround. -- With best regards, Andrey Repin Thursday, May 25, 2017 18:48:43 Sorry for my terrible english... -- 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