X-Recipient: archive-cygwin AT delorie DOT 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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=io5 UIfdW8ceTFvDYbkSlRTni2Uw5ylRRl08142gIETR6901L6XQGnxLAGzZ66ZQbQR1 j589uS7FDPGwZXfRPV2RFxR5OIAxpnrsSXxqytGkctQEeMaBVmacWsHXm5Uikhzw 3X2s4CwQVKdUsMHwwryCcNd6gYc0wmkD/7WTafI8= 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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=fR0n9Y3E+ sveH7OWo5b3CrwRB1A=; b=u7ssyQ4wiXIPxieD8dSmHr3KdfaMhjXpTa/S7iiET FN3N2UGmf3DZO2r9hYiqC05A9zp8ISWF8ufILx1ok7qjYiGPedkqJb5dGmYHsF9p D3BBtFLbJJ+Q5kcF2dAZA0j89FXFKCBcP7dCHprj/khxRKCd7hKXWZg5exsyC9Xr gE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_00,LIKELY_SPAM_SUBJECT,SPF_PASS autolearn=no version=3.3.2 spammy=bom, Hx-spam-relays-external:14.3.294.0, Hx-exchange-antispam-report-cfa-test:100110500095, Hx-exchange-antispam-report-cfa-test:100000805047 X-HELO: USA7109MR001.ACS-INC.COM From: "Nellis, Kenneth" To: "cygwin AT cygwin DOT com" Subject: UTF-8 compatibility between Windows and Cygwin Date: Thu, 25 May 2017 15:29:50 +0000 Message-ID: authentication-results: cygwin.com; dkim=none (message not signed) header.d=none;cygwin.com; dmarc=none action=none header.from=conduent.com; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR2001MB1074;7:VSzH1S5H8Ks7hjmC0pusHHZshZOXd+0vKVpxI0+rN8sk2dy/xi8V0wVfD4ExXp8RTKObY9qTt3CWUCkEMw7EqtzBQiNDE9WQZKenF/4LZSGwXTOEGgDt5aLpG55tNVbz8tmt38xaz0B9KU3qe3uZhjUFVPMs/tOtSUEOG+cjEnauiVKIHUtZYB1RfzvKsa4x958VWw36tfyRKpJSqN8a8YciY+8zJDv06Uf4KeCFMvEj79bEY/WHoQc6N9Q2eC8LF6bxEr3R5Dd+s6RkzZGt/xaWWk41EeZIYTYngXzIbRiG99MINNG8ZaOoFpkIyk+4YVHALfRSlgS6oGFS8Zt9Dg==;20:6vkmjjo8Kc4EdIKDK0Zh7ISAjmKU2UYgIr6ToHL9c7zn6yx39mNCFBGk+ciGnO+IPEg+T8HTrl12lTZb32rVXOHB3j44ik01Us3IGUdEaFZnrt5bTO3hQjU9iXsCJTqaFpes/DVR470BAnlDZ6YFCVtfKcORg+jYfN6wGk80qMm3hw4x393UKbOsUl9fwDs6dMGkoFHbo1JO5YqC6kihJwBlZshFSY4TLO+cz//0npj0lawCc9XjEr6eqUwYEfJ+ x-ms-traffictypediagnostic: BN6PR2001MB1074: x-ms-office365-filtering-correlation-id: c68052d7-b7ce-4645-d0ff-08d4a382e257 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(201703131423075)(201703031133081);SRVR:BN6PR2001MB1074; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700054)(100105000095)(100000701054)(100105300095)(100000702054)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703054)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(20161123555025)(6072148)(100000704054)(100105200095)(100000705054)(100105500095);SRVR:BN6PR2001MB1074;BCL:0;PCL:0;RULEID:(100000800054)(100110000095)(100000801054)(100110300095)(100000802054)(100110100095)(100000803054)(100110400095)(100000804054)(100110200095)(100000805047)(100110500095);SRVR:BN6PR2001MB1074; x-forefront-prvs: 0318501FAE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39840400002)(39850400002)(39450400003)(39410400002)(39400400002)(38730400002)(2351001)(110136004)(72206003)(6916009)(74316002)(305945005)(2501003)(122556002)(53936002)(86362001)(25786009)(8936002)(1730700003)(81166006)(8676002)(7696004)(3660700001)(3280700002)(2906002)(2900100001)(478600001)(5660300001)(7736002)(5640700003)(189998001)(6436002)(9686003)(55016002)(99286003)(54356999)(50986999)(6506006)(33656002)(6116002)(102836003)(77096006)(3846002)(66066001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR2001MB1074;H:BN6PR2001MB1074.namprd20.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2017 15:29:50.4074 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1aed4588-b8ce-43a8-a775-989538fd30d8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR2001MB1074 X-OriginatorOrg: conduent.com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v4PFU77X015208 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. I'm pretty sure that I want to keep my Cygwin LANG=C.UTF-8 setting, but wondering what I can do on the Windows side for compatibility and what are the side effects. Currently Windows's Command Prompt command chcp shows "Active code page: 437". (Is that obsolete or even relevant?) 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. --Ken Nellis -- 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