delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/04/19/14:35:41

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 2F0AF3858D3C
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru
X-Yandex-Fwd: 2
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1650393301; bh=LZ91+XiP095fHk6sOSdBBSHb7mgmtSB0bhmVHSyP3tc=;
h=In-Reply-To:Subject:To:From:Message-ID:References:Date:Reply-To;
b=chaC5ii8PHclXfR1sqcvuCb6IjMvHpkzD7Co9IBlHwj/e8ZwEMT/nEjdjL1R54cUc
T3mb+kJw+Hn6oBgsj8f3O6qoLyAt342CEiEgK4makhzjFwK0rpmr+w9lME0cM5cq83
nhdfE7xN54I2n2bZQDQCUxROmGaK8FVjeODTs/KM=
Authentication-Results: myt5-e6ee94481288.qloud-c.yandex.net;
dkim=pass header.i=@yandex.ru
Date: Tue, 19 Apr 2022 21:20:57 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1924598709.20220419212057@yandex.ru>
To: Ilya Basin <basinilya AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: windows netsh/route output translated to English in mintty
In-Reply-To: <6ccb7fc3-3a1b-6e19-c802-49accd5e9444@gmail.com>
References: <6ccb7fc3-3a1b-6e19-c802-49accd5e9444 AT gmail DOT com>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE,
XM_LIGHT_HEAVY autolearn=no 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>

Greetings, Ilya Basin!

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

No, it is netsh does.
It checks the console codepage and outputs in english if it is not an OEM
CP.

> Secondly, it doesn't seem to be affected by TERM= LC_ALL= , redirections or even setsid.

Right.

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

Microsoft stupidity.


-- 
With best regards,
Andrey Repin
Tuesday, April 19, 2022 21:13:47

Sorry for my terrible english...


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