delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/07/22/14:50:27

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46MIoRMV2670846
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=D8UAXlCY
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 406F1385840A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1721674225;
bh=HaHadUy/cqvYv0pIY7YI1oUhCFc52uogKZKwptf4d5U=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=D8UAXlCYNH+1cF+tBoZfBBL8DSp8av5Q04XxiZDZAOeeQDubtCAd9fCafNFYzz8lT
2CVo6St98xJ6s+4m8vr6IQAu0lTuQbtpSwYH4lcHXsfArPaluJiOx0OCz3riHxc6Fz
n/cr4cbOJ+kUSLbytWBRZ7VwfFW1cXol/wr0JCFs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D1CC43858C33
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D1CC43858C33
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721674202; cv=none;
b=VNf4KYuIyzDwbLxCUCu8EWyy9fwUZUHNEq7IQlzJQF5JYZlSX9wiPaxHME6QCeesiqJUYxBQdAxZBif6mwNheoawTFDWHCwpt3iYDuG71Rk6Xy1RNJyt6RNr5bsURhGp6uiEhHimf/0QFjj0NHn5sE5TJA+L/hvOV7EQ/hbRsH8=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1721674202; c=relaxed/simple;
bh=KPO8AZhn/52/+Sn2W74IYC21stUkBdf68/1PVetBqbk=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=m6j7DCBMVWavTGxOarRscFhfnRrpnnOkmhjyDwo4Owoqy/dajId3rlj20UBdOIQmaeBUnDiETj2BCfM/xinFQPpFgrfHNpZIpPID1OgpO9Ys107Dhj/ErDHkgEeoz94na1wbWrIPK7LJH2MMr270R1L2+ZlHK8L4EDgAgB9Ku+U=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1721674199; x=1722278999;
h=content-transfer-encoding:in-reply-to:from:content-language
:references:to:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=U9z9h8lAQomMxGEV4s1f3l4hcwzewGYIW0oR4TePfXU=;
b=v18wDN55rZhsl+fKkGBwiUfAQywwXfIogwMPc0UDFThYalksOZsDPebJ9Fe+BIHxny
6BMUshfiIad4PD4fEGHHRCDVPGNoOb+ulVYhDKRXpk5ctv6PLT/YAb/GNYUpjZQfRwOv
odRXeHiqkWaHAngepLG0h4zeU0h8PMj31VzY3nfmarF4OdmHn7GGAitv2M6Yr6/HR1+O
4LUdeMWVcj9VhCj1ZWqa9hHuVzdzNgsx4VjnQFRRm+EASEt96MYslE2pzS54Nvlk3/LZ
QhTg+UMASqy1R29HYmKkpidzACfsbsHGVSt+nuAbwyqsdrzgzcMNC4hxO5udM7cXC530
vYOQ==
X-Gm-Message-State: AOJu0Yx9jHIbwkAZGaqC0Ig1tElUPy2eDIgQNU2FQHogj8O+kWKKJEXz
BOAL4OaBslpG9/xXHzIOmzqVckNHyG934EOfWA6xgyxmH50NFYX/IctuUw==
X-Google-Smtp-Source: AGHT+IG5bzbW21xE0TR/IC0xAGIVZRK3WQFn3mN0mJUs4HeSyVVmeWlNvKvsixcvd5pqJwZ/T9/Cpg==
X-Received: by 2002:a50:c30f:0:b0:5a3:ca25:56e2 with SMTP id
4fb4d7f45d1cf-5a47afefb48mr4553990a12.23.1721674199248;
Mon, 22 Jul 2024 11:49:59 -0700 (PDT)
Message-ID: <5293921c-6606-4722-9d57-f50cc787a0ff@gmail.com>
Date: Mon, 22 Jul 2024 20:49:52 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Parse output of "net use", but language varies - force language
for "net use"?
To: cygwin AT cygwin DOT com
References: <CAN0SSYzW_im0Fgucbsqk6u=Cu1suSmvhJbskH8doV98mMOTtUg AT mail DOT gmail DOT com>
<20240721085457 DOT 9cf5591d8f990352a277347b AT nifty DOT ne DOT jp>
<9fdc2e3d-6cc8-489a-af54-142c1809c5ad AT towo DOT net>
In-Reply-To: <9fdc2e3d-6cc8-489a-af54-142c1809c5ad@towo.net>
X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP 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
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: =?utf-8?q?Csaba_R=C3=A1duly_via_Cygwin?= <cygwin AT cygwin DOT com>
Reply-To: =?UTF-8?Q?Csaba_R=C3=A1duly?= <rcsaba AT gmail DOT com>
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 21/07/2024 05:57, Thomas Wolff via Cygwin wrote:
>
>
> 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.

Plus, it sounds like a global solution to a local problem: 
https://devblogs.microsoft.com/oldnewthing/20081211-00/?p=19873

Csaba

-- 
Life is complex, with real and imaginary parts.


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