On Sun, 21 Jul 2024 05:57:10 +0200 Thomas Wolff 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.
You are right. However, in Japanese environment, net use command output Japanese message on CP932 and English message on CP437. So, I think that this might change the message language even in Danish, French or Germany environment. -- Takashi Yano <takashi.y...@nifty.ne.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