delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/04/07/12:29:46

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.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
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
Subject: Re: windows netsh/route output translated to English in mintty
To: cygwin AT cygwin DOT com
References: <6ccb7fc3-3a1b-6e19-c802-49accd5e9444 AT gmail DOT com>
<20220407183528 DOT 44d47e5cd506e4dde6792558 AT nifty DOT ne DOT jp>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Organization: Systematic Software
In-Reply-To: <20220407183528.44d47e5cd506e4dde6792558@nifty.ne.jp>
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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 <code page>
> 
> 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.]

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019