X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 05B0A386188A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon AT yandex DOT ru DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1596477002; bh=pv67IL7hl6kNVtNrO05thfBKW6tgJE2iiNXTogfR52I=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=TmdmfvHpgyBj+Su6HjLTYzFfe2umUDzhQe/syPzCfsxIdKU35bgm+XAeBkVUbbL2t MxkgZgGUorQI1aL9WYgtJM1hnkCNihH5hqt52+qPUzLEAKrPm/6YiTwseU++3Q0wd+ +t8BL519vsQscniNPO7+LK5NzcYHZ3Z9n8R+YG1M= Authentication-Results: mxback30j.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Mon, 3 Aug 2020 20:42:49 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <1314865780.20200803204249@yandex.ru> To: Michael Shay , cygwin AT cygwin DOT com Subject: Re: Trouble with character sets In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Greetings, Michael Shay! Please bottom post in this mailing list. > Doesn't help. I tried 65001 (UTF-8): Because you're confusing things. chcp has nothing to do with LANG or LC_*. Et vice versa. chcp sets console code page for native console applications. Only for those supporting it. Many do not. LANG sets output parameters for Cygwin applications (and other programs that look for it, but these are few). > ### SET CP TO UTF-8, 65001 > $cygwin_charset_test.ksh > Old CP 65001 > locale on entry > 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= > ### CP SET TO 65001 > Active code page: 65001 > locale changed to > LANG=en_US.CP1252 > LC_CTYPE="en_US.CP1252" > LC_NUMERIC="en_US.CP1252" > LC_TIME="en_US.CP1252" > LC_COLLATE="en_US.CP1252" > LC_MONETARY="en_US.CP1252" > LC_MESSAGES="en_US.CP1252" > LC_ALL=en_US.CP1252 > Running WIN32 pgm > Transcoding using Cygwin codepage: 1252 > Input widechar string: > lpw[0] = Z - 5A > lpw[1] = - F0C7 > wmain: Z? > Active code page: 65001 > and 1252 > ### SET CP TO 1252 > $cygwin_charset_test.ksh > Old CP 65001 > locale on entry > 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= > ### CP SET TO 1252 > Active code page: 1252 > locale changed to > LANG=en_US.CP1252 > LC_CTYPE="en_US.CP1252" > LC_NUMERIC="en_US.CP1252" > LC_TIME="en_US.CP1252" > LC_COLLATE="en_US.CP1252" > LC_MONETARY="en_US.CP1252" > LC_MESSAGES="en_US.CP1252" > LC_ALL=en_US.CP1252 > Running WIN32 pgm > Transcoding using Cygwin codepage: 1252 > Input widechar string: > lpw[0] = Z - 5A > lpw[1] = - F0C7 > wmain: Z? > Active code page: 65001 -- With best regards, Andrey Repin Monday, August 3, 2020 20:36:16 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple