From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from Longs.ABINITIO.com (fw-lex.abinitio.com [65.170.40.234]) by sourceware.org (Postfix) with ESMTP id 353A43857C42 for ; Mon, 3 Aug 2020 18:15:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 353A43857C42 In-Reply-To: <1314865780.20200803204249@yandex.ru> To: cygwin@cygwin.com Subject: Re: Trouble with character sets Message-ID: From: "Michael Shay" Date: Mon, 3 Aug 2020 14:15:35 -0400 References: <1314865780.20200803204249@yandex.ru> MIME-Version: 1.0 X-KeepSent: E3254EC7:619839E9-852585B9:00644343; name=$KeepSent; type=4 X-Disclaimed: 939 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HTML_MESSAGE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 18:15:37 -0000 Michael From: "Andrey Repin" To: "Michael Shay" , cygwin@cygwin.com Date: 08/03/2020 02:06 PM Subject: Re: Trouble with character sets 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=5F*. Et vice versa. chcp sets console code page for native console applications. Only for=20 those supporting it. Many do not. LANG sets output parameters for Cygwin applications (and other programs=20 that look for it, but these are few). > ### SET CP TO UTF-8, 65001 > $cygwin=5Fcharset=5Ftest.ksh > Old CP 65001 > locale on entry > LANG=3D > LC=5FCTYPE=3D"C.UTF-8" > LC=5FNUMERIC=3D"C.UTF-8" > LC=5FTIME=3D"C.UTF-8" > LC=5FCOLLATE=3D"C.UTF-8" > LC=5FMONETARY=3D"C.UTF-8" > LC=5FMESSAGES=3D"C.UTF-8" > LC=5FALL=3D > ### CP SET TO 65001 > Active code page: 65001 > locale changed to > LANG=3Den=5FUS.CP1252 > LC=5FCTYPE=3D"en=5FUS.CP1252" > LC=5FNUMERIC=3D"en=5FUS.CP1252" > LC=5FTIME=3D"en=5FUS.CP1252" > LC=5FCOLLATE=3D"en=5FUS.CP1252" > LC=5FMONETARY=3D"en=5FUS.CP1252" > LC=5FMESSAGES=3D"en=5FUS.CP1252" > LC=5FALL=3Den=5FUS.CP1252 > Running WIN32 pgm > Transcoding using Cygwin codepage: 1252 > Input widechar string: > lpw[0] =3D Z - 5A > lpw[1] =3D - F0C7 > wmain: Z? > Active code page: 65001 > and 1252 > ### SET CP TO 1252 > $cygwin=5Fcharset=5Ftest.ksh > Old CP 65001 > locale on entry > LANG=3D > LC=5FCTYPE=3D"C.UTF-8" > LC=5FNUMERIC=3D"C.UTF-8" > LC=5FTIME=3D"C.UTF-8" > LC=5FCOLLATE=3D"C.UTF-8" > LC=5FMONETARY=3D"C.UTF-8" > LC=5FMESSAGES=3D"C.UTF-8" > LC=5FALL=3D > ### CP SET TO 1252 > Active code page: 1252 > locale changed to > LANG=3Den=5FUS.CP1252 > LC=5FCTYPE=3D"en=5FUS.CP1252" > LC=5FNUMERIC=3D"en=5FUS.CP1252" > LC=5FTIME=3D"en=5FUS.CP1252" > LC=5FCOLLATE=3D"en=5FUS.CP1252" > LC=5FMONETARY=3D"en=5FUS.CP1252" > LC=5FMESSAGES=3D"en=5FUS.CP1252" > LC=5FALL=3Den=5FUS.CP1252 > Running WIN32 pgm > Transcoding using Cygwin codepage: 1252 > Input widechar string: > lpw[0] =3D Z - 5A > lpw[1] =3D - F0C7 > wmain: Z? > Active code page: 65001 --=20 With best regards, Andrey Repin Monday, August 3, 2020 20:36:16 Sorry for my terrible english... Thanks for the feedback. I wasn't aware of the protocol. Mike Shay =20 NOTICE from Ab Initio: This email (including any attachments) may contain = information that is subject to confidentiality obligations or is legally pr= ivileged, and sender does not waive confidentiality or privilege. If receiv= ed in error, please notify the sender, delete this email, and make no furth= er use, disclosure, or distribution.