From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward500p.mail.yandex.net (forward500p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:110]) by sourceware.org (Postfix) with ESMTPS id 2F0AF3858D3C for ; Tue, 19 Apr 2022 18:35:03 +0000 (GMT) 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 Received: from myt5-e6ee94481288.qloud-c.yandex.net (myt5-e6ee94481288.qloud-c.yandex.net [IPv6:2a02:6b8:c12:5714:0:640:e6ee:9448]) by forward500p.mail.yandex.net (Yandex) with ESMTP id 17EB8F024CA; Tue, 19 Apr 2022 21:35:01 +0300 (MSK) Received: from myt5-89cdf5c4a3a5.qloud-c.yandex.net (myt5-89cdf5c4a3a5.qloud-c.yandex.net [2a02:6b8:c12:289b:0:640:89cd:f5c4]) by myt5-e6ee94481288.qloud-c.yandex.net (mxback/Yandex) with ESMTP id l49UHlD2sQ-Z0fa4aHi; Tue, 19 Apr 2022 21:35:01 +0300 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 Received: by myt5-89cdf5c4a3a5.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id hNkY3shoHD-Z0MiBstM; Tue, 19 Apr 2022 21:35:00 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 19 Apr 2022 18:20:57 -0000 Date: Tue, 19 Apr 2022 21:20:57 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Reply-To: cygwin@cygwin.com Message-ID: <1924598709.20220419212057@yandex.ru> To: Ilya Basin , cygwin@cygwin.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@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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@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: Tue, 19 Apr 2022 18:35:05 -0000 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...