X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05700385783E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1700753797;
	bh=VAbuxnEhvYuuRD+3bA0CZyxRFJvD8ukmR7bPjiCuGjU=;
	h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=FX1asOksWSQI4jNIMROg0HOXb2wrXoT5t7pvPfJkz+FZrAeXwXZpBY78XW+KCFGh0
	 uDJ6H9FtzjdhUtlS/lpOYSZuFeCSDyAx7IC9g3sPOFaBGIQ1qcAT5O0uEeX4Wme27r
	 Ovwf52/2FdP6Qoh8qBMfSvemm7SuyLT/z78c1YF0=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2D06385842F
Date: Thu, 23 Nov 2023 16:36:21 +0100
To: cygwin@cygwin.com
Subject: Re: Set localisation locale of Windows netstat?
Message-ID: <ZV9xdf+bbAFPnan+@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <CALXu0Uf6uF12g67viBiCDeSuDDKWViMHbhkcPqOMt-Lz5RJF_A@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CALXu0Uf6uF12g67viBiCDeSuDDKWViMHbhkcPqOMt-Lz5RJF_A@mail.gmail.com>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Nov 23 00:25, Cedric Blancher via Cygwin wrote:
> Good morning!
> 
> How can I set the localisation locale of Windows netstat cmd from
> Cygwin? LC_ALL=C does not help, a French or German Windows will use
> French or German language still

Cygwin has no influence on how non-Cygwin tools are doing their job.
They typically don't understand the POSIX-compatible locale environment
strings, and afaik, they don't support $LC_* at all, only $LANG.

And it's getting worse: If you have a localized version of the tools,
there's no guarantee that the locale data of other languages is even
present on your system.  US English is the only common denominator, but
I wouldn't bet on it...

Having said that, LANG=C *should* work, but, of course, there's no
guarantee that a Windows builtin tool will even deign to honor $LANG.

There is some description of the possible locale expressions
supported in $LANG on https://learn.microsoft.com/, it's just that the
search algorithm on that site is incredibly unhelpful at times...


Corinna

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