delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/07/20/19:55:27

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46KNtQtv1827130
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=ucENgIQe
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04C1E385DDEC
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1721519725;
bh=66YO7QKZgttHN5ol7aVHoy3JjQ3KVYuZjevGoGmr7s4=;
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=ucENgIQe5uI96WcBl6paotm4WQil/KRkFJhEggUIvydbduHQBUmIk+1AgqWuSCARj
M7hlDR4EZMPOujPhPty6c+xR3jnEK9WqCBGr7+uqSGn24mgN4ZRAg8ZMXlGkIesoQJ
Zr8MMjVJi7y9wfwD5aZNymQa/f3kVdhhEh+tNt4s=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 74A51385DC32
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 74A51385DC32
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721519703; cv=none;
b=ii642hPPsfdH2BUAKf19R08rvwYFRIfAhGNDPPMBW4fqxxvZDry+Z1T4+qL+3SkN1qxHThfEiNTOPUvH/FRcyiwjGcsr0yMWqMuoCKwtfrQ+PdA2+l22LODCmceMlHGkIVmdnbCefXs0+emQH3LydGDyLNZ0OWwEBLQ/WllNvog=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1721519703; c=relaxed/simple;
bh=TPowjyjB87InjV4x4M4QcabVjMDNdX8R3GURWCU7QBI=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=eEfuB3Zd5LpX1baNfIUNoG8OtfQxAOs5FORwD14V5ouT9DGsD3jYom8OLFf3Gq8q/s3EtGFSnePvjOH10PCQPS/nObCHh4qIckKj3U2eOtsF8FnT5SnbJdQBV5NiZqxga9lfLMUJg66PCctPyrk9wZ6xa+4oykT7NCfzuhxQ2fI=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Sun, 21 Jul 2024 08:54:57 +0900
To: cygwin AT cygwin DOT com
Subject: Re: Parse output of "net use", but language varies - force language
for "net use"?
Message-Id: <20240721085457.9cf5591d8f990352a277347b@nifty.ne.jp>
In-Reply-To: <CAN0SSYzW_im0Fgucbsqk6u=Cu1suSmvhJbskH8doV98mMOTtUg@mail.gmail.com>
References: <CAN0SSYzW_im0Fgucbsqk6u=Cu1suSmvhJbskH8doV98mMOTtUg AT mail DOT 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=-5.4 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_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
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 Sat, 20 Jul 2024 15:44:17 +0200
Mark Liam Brown wrote:
> 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?

Did you try
chcp.com 437
or something like that?

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