X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFD473861865 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1596478539; bh=WjMMIiENu5w+fEmr4ATNMuJ9ErtQzHfMQJ0EXhSzSCI=; h=In-Reply-To:To:Subject:Date:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=KIQJjA5qk+68fRB7SK9Tv/ZlvJ6p6/DVJe6fzobTWcsx9T3dutfXHmrcGqjtheEEP hWD+Y9KRY3YWn/LetihzVkhLI0x+6aB1SnhfZ5I/02a45I23xIcCp1owjeDUJh6KBp mas9tMl4cidMFDfVBQUIx/AYhuQgRnVb0hCietWM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 353A43857C42 In-Reply-To: <1314865780.20200803204249@yandex.ru> To: cygwin AT cygwin DOT com Subject: Re: Trouble with character sets Message-ID: Date: Mon, 3 Aug 2020 14:15:35 -0400 References: <1314865780 DOT 20200803204249 AT yandex DOT 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: , From: Michael Shay via Cygwin Reply-To: Michael Shay Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Michael From: "Andrey Repin" To: "Michael Shay" , cygwin AT cygwin DOT 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_*. 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... Thanks for the feedback. I wasn't aware of the protocol. Mike Shay NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution. -- 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