delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/04/07/05:36:21

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 0575F3858C50
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 2379ZRhN006609
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
s=dec2015msa; t=1649324128;
bh=uR+AA98voPI4Km07nSLvHGr1aY45Xow5R3a89YZNBTs=;
h=Date:From:To:Cc:Subject:In-Reply-To:References:From;
b=q8zG2pbAA5W2JprABEOS2ZJ3fL3LeaRuE6frDhl2Y/0mvhMtwUNbqYpb+Y+5HQjsW
QQjbzJj/0xL+Fo3tkIKMQ2VrQAff77g2c4Ds+SpRhQBbvj7yz1cgd3NMdTkijhp+vM
K6ICjRGInYpaqFt+hKO6Da9evMODk8umEnMWw+jXdxYqqQD213pKWlPfOLYiqcqJcH
vp0F2LXT+8a4F+QoNuLwKfYmGfcUtqIjsGldwEklSUDzfG+0MuJ+N+uhorBjmuYRiA
Z9ml89DEjpuko7oa10YE42UnyozIoBGljgYgEPDiqiG/Ig7BxHJ2GUUvuXYTmeHSH5
SQPx6o1qeKVqg==
X-Nifty-SrcIP: [119.150.44.95]
Date: Thu, 7 Apr 2022 18:35:28 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: windows netsh/route output translated to English in mintty
Message-Id: <20220407183528.44d47e5cd506e4dde6792558@nifty.ne.jp>
In-Reply-To: <6ccb7fc3-3a1b-6e19-c802-49accd5e9444@gmail.com>
References: <6ccb7fc3-3a1b-6e19-c802-49accd5e9444 AT gmail DOT com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, 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>
Cc: Ilya Basin <basinilya AT gmail 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 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.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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