From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by sourceware.org (Postfix) with ESMTPS id 05B0A386188A for ; Mon, 3 Aug 2020 17:50:05 +0000 (GMT) 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@yandex.ru Received: from mxback30j.mail.yandex.net (mxback30j.mail.yandex.net [IPv6:2a02:6b8:0:1619::230]) by forward100j.mail.yandex.net (Yandex) with ESMTP id BF1E050E12E7; Mon, 3 Aug 2020 20:50:02 +0300 (MSK) Received: from iva8-6403930b9beb.qloud-c.yandex.net (iva8-6403930b9beb.qloud-c.yandex.net [2a02:6b8:c0c:2c9a:0:640:6403:930b]) by mxback30j.mail.yandex.net (mxback/Yandex) with ESMTP id 0hmFsjLvhi-o2O8huZP; Mon, 03 Aug 2020 20:50:02 +0300 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 Received: by iva8-6403930b9beb.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id SCAWHLGtSg-o2jmreas; Mon, 03 Aug 2020 20:50:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Mon, 03 Aug 2020 17:42:49 -0000 Date: Mon, 3 Aug 2020 20:42:49 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <1314865780.20200803204249@yandex.ru> To: Michael Shay , cygwin@cygwin.com Subject: Re: Trouble with character sets In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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@cygwin.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: , X-List-Received-Date: Mon, 03 Aug 2020 17:50:07 -0000 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...