DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46LLL7tC2182033 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=GKgWtfzh X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E487F385E457 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1721596866; bh=fPxro3n2b0ZWUD/lvyKbaOtFByZ2mNsuh1FSH92Rbws=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=GKgWtfzhKRAoWOFr3AxdarVF3JMXCOK5QzMldgw3QpXblr1mSY9x4meOU508oPwZ1 RrBVrHVBi6Yk2G94uZvOHlyiHuMKhar/zEWwwxifF4wJEkQKY/94lwfR9dZJEgVBvE It2HyZHyt0NDh/0yiMXVTSgvFAtgC2Z8RFfA+ho0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5A4313858D34 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5A4313858D34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721596806; cv=none; b=RUeMHTAF0mWt/6X7xCkE6pkBKM9WUh8EIJm8vt0ZOpvmR75lRbKIsoZGd7dVOwTijU8fxiW8hjSud1RhoB2MJ/VB9nE8JL3hXJnHn70lvX7bs+eknhXNjiMfZoOMwOuPc5I1fwOzEimgWs6i5qrxwEqm+Ykb3vyJaHgBgbq+E8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721596806; c=relaxed/simple; bh=vkypqbJEIGHqeW1vhWNdK84XUECeb/4NORDuZgoeTy0=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=fUucVQyNZmf3vlv5xCRMgdFyDQXXWVXhrNth4wwDlbRwj2drzYLEKH42zyhXvIabJe7fc4Y4vbnJcuj9srIfYv+PF51pgFDXPhnHZ+4ZOX8BtkL5SnY54qo8sVBjqmfcy99la6vjWp00sxOsz4vI8t1d2468oGfDAhmh24AkebA= ARC-Authentication-Results: i=1; server2.sourceware.org X-Yandex-Fwd: 1 Date: Mon, 22 Jul 2024 00:09:44 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1353477879.20240722000944@yandex.ru> To: Thomas Wolff , cygwin AT cygwin DOT com Subject: Re: Parse output of "net use", but language varies - force language for "net use"? In-Reply-To: <9fdc2e3d-6cc8-489a-af54-142c1809c5ad@towo.net> References: <20240721085457 DOT 9cf5591d8f990352a277347b AT nifty DOT ne DOT jp> <9fdc2e3d-6cc8-489a-af54-142c1809c5ad AT towo DOT net> MIME-Version: 1.0 X-Spam-Status: No, score=-0.7 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, XM_LIGHT_HEAVY autolearn=no 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="cp1250" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 46LLL7tC2182033 Greetings, Thomas Wolff! > Am 21.07.2024 um 01:54 schrieb Takashi Yano via Cygwin: >> 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 > That could change the character encoding, for some (older) programs, not > the language. You'd be surprised… >> or something like that? -- With best regards, Andrey Repin Monday, July 22, 2024 00:09:30 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