DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46KE509s1674733
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=GiAk9OON
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A9B7385ED69
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1721484300;
	bh=XaQCfU8Qe2w+15xU8zZyoGopuNqRFoFSMK+l3Tceu4w=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=GiAk9OONjaOpoYy1Y4XT/B+uhxiMLxy7jzGAFj0d8fGw/SQTGABCz/xbGc/P4WRtH
	 vllcjh0CcCOlYu/7zmVBlZxnxUUduaS/2I9MKt5BUMK4ro9Nw+80OzU7P81wbKCMxU
	 dt8fDVJpy66cPCU/GO5pwOyYu7lfe7Coqv4iWTYI=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C1F763858C41
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C1F763858C41
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721484249; cv=none;
 b=lFGhv4BIHmmQ2uhuPeJtqzvLxUuzw45SZw/i/owqSCGnbeNgnxr1U+XI2/0pd9gS0l9C+/YutfXh0Dwbm6F2NkxymiLZDvRL/4elfFyi6GpPS70S6E/NSgFy/k+kYerAuXY0I64cqLly70Jomk2pbyIjzRKmbIKkWQClBo+y8l0=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1721484249; c=relaxed/simple;
 bh=qa3TmkL39b1PXw0x8NKB61+YZBH/0V30hKYRN2QT8ME=;
 h=Date:From:To:Subject:Message-ID:MIME-Version;
 b=MeV+NZXCvzTuTGeyb4IIzvVwL+bXuRJA0WsA33fruJ790ROyxGH4SmLrAKWT+yM8hqwq5jfIJPcB1gKpL2xWLjxr+M/WnvFv6/C3/CqPAdbx/Jn9gG0+8elDIWzzA+Os0j3oGEC3rrsBAIEiEcn24iOHp88BuspKsYaU2EAc26Y=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Sat, 20 Jul 2024 16:04:04 +0200
To: cygwin@cygwin.com
Subject: =?US-ASCII?Q?Re=3A_Parse_output_of_=22net_use=22=2C_but_langua?=
 =?US-ASCII?Q?ge_varies_-_force_language_for_=22net_use=22=3F?=
User-Agent: K-9 Mail for Android
In-Reply-To: <57d18abd-4a77-770d-a312-036ba86ba092@cs.umass.edu>
References: <CAN0SSYzW_im0Fgucbsqk6u=Cu1suSmvhJbskH8doV98mMOTtUg@mail.gmail.com>
 <57d18abd-4a77-770d-a312-036ba86ba092@cs.umass.edu>
Message-ID: <51A29BBB-9556-4DA8-AE6B-6BB56CE80CCF@lists.roth.lu>
MIME-Version: 1.0
X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_40, HTML_MESSAGE,
 KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE,
 TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
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: marki via Cygwin <cygwin@cygwin.com>
Reply-To: marki <cygwin-users@lists.roth.lu>
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 46KE509s1674733

Yeah, maybe there is another way of doing what you want. But you don't describe what you want to do. You have come up with a solution to an unknown problem but it does not work. May be an instance of the xy problem.

El 20 de julio de 2024 15:58:05 CEST, Eliot Moss via Cygwin <cygwin@cygwin.com> escribió:
>On 7/20/2024 9:44 AM, Mark Liam Brown via Cygwin wrote:
>> Greetings!
>> 
>> I am trying to parse the output of "net use" in a bash script, but hit
>> a roadblock:
>> The output of "net use" changes with the language of the system
>> (English, Danish, French, ...), so parsing becomes nearly impossible
>> 
>> How can I force the language used by "net use" to English, even if the
>> system default language is Danish or French?
>> 
>> Mark
>
>Poking around on the web a little suggests that Windows does not use an
>environment variable like LANG to control the language.  Rather, the relevant
>settings seem to live in the registry.  It seems a little dangerous and
>fragile to me to change the registry and change it back, but that may be the
>only approach unless there's a concept of "change a registry entry for this
>session only" or something like that.
>
>HTH, and I'm more than happy to have someone more knowledgeable expand or
>correct this!
>
>Eliot Moss
>
>-- 
>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

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

