From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 8CFF13858407 for ; Thu, 7 Apr 2022 16:29:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8CFF13858407 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=systematicsw.ab.ca Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id cSvHnFxN8gTZYcV0gnF7uk; Thu, 07 Apr 2022 16:29:26 +0000 Received: from [10.0.0.5] ([184.64.124.72]) by cmsmtp with ESMTP id cV0gn3edmQV6mcV0gnwwQa; Thu, 07 Apr 2022 16:29:26 +0000 X-Authority-Analysis: v=2.4 cv=PbTsOwtd c=1 sm=1 tr=0 ts=624f1166 a=oHm12aVswOWz6TMtn9zYKg==:117 a=oHm12aVswOWz6TMtn9zYKg==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=r-inJIJVAAAA:8 a=94nOnFI1EgyDtX4ev68A:9 a=QEXdDO2ut3YA:10 a=LoahkhQvIPAA:10 a=sRI3_1zDfAgwuvI8zelB:22 a=BQhyvZF-XxUuHVZtuGPo:22 Message-ID: <9921e2bf-0afe-7802-9c0c-72ae667e00b9@SystematicSw.ab.ca> Date: Thu, 7 Apr 2022 10:29:26 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Reply-To: cygwin@cygwin.com Subject: Re: windows netsh/route output translated to English in mintty Content-Language: en-CA To: cygwin@cygwin.com References: <6ccb7fc3-3a1b-6e19-c802-49accd5e9444@gmail.com> <20220407183528.44d47e5cd506e4dde6792558@nifty.ne.jp> From: Brian Inglis Organization: Systematic Software In-Reply-To: <20220407183528.44d47e5cd506e4dde6792558@nifty.ne.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfHs2yrJqTKQvr7D6/Gj6CmdK3EL4uG8CjApBOAtXOFXCSj13wtHXXRXALGeS49SR/sqDCYb0tRF3w+leHyZbFi39dxCjF83CIPsQyNBkgdMjktChiDvn APfW7SIxJ6X3QTRcDaGb50i75x1YmS2SElm6P2bw241RSDU/9Sc4DoBt01mxk9ikVwqopx9PBOD42ZWGNZk0cnzNOfVRPOTgUVs= X-Spam-Status: No, score=-1165.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Thu, 07 Apr 2022 16:29:28 -0000 On 2022-04-07 03:35, Takashi Yano wrote: > On Thu, 7 Apr 2022 11:38:28 +0300 > Ilya Basin wrote: >> Hi. One of my PCs still has Windows 7 and I noticed that when I run >> netsh interface ipv4 show route >> or >> route print >> >> In Mintty, the output is translated to English and when I run these commands from Cygwin started in a Windows console the output is in the same language as the OS. Does Cygwin do that? >> >> Secondly, it doesn't seem to be affected by TERM= LC_ALL= , redirections or even setsid. >> >> And I also noticed that when the "Interface List" section of "route print" is translated to English the national interface names containing "Microsoft ISATAP" are omitted completely, including the newlines so the output looks like this: >> >> ... >> 1...........................Software Loopback Interface 1 >> 12...00 00 00 00 00 00 00 e0 14...00 00 00 00 00 00 00 e0 16...00 00 00 00 00 00 00 e0 18...00 00 00 00 00 00 00 e0 20...00 00 00 00 00 00 00 e0 26...00 00 00 00 00 00 00 e0 =========================================================================== >> >> IPv4 Route Table >> ... >> >> Does anybody know the reason? > > That's because code page is set to CP_UTF8 (65001) by default > in pty without pseudo console support for a certain reason. > https://cygwin.com/pipermail/cygwin-developers/2020-August/011951.html > > You can change the code page by > chcp.com > > Windows program does not reffer to TERM, LC_ALL, etc. but code page. In mintty, see Options/Text/Locale|Character set or .minttyrc entries: # # Locale ll[l]_CC language_country Locale=en_CA # # Character set UTF-8|... Charset=UTF-8 -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]