From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward500b.mail.yandex.net (forward500b.mail.yandex.net [178.154.239.144]) by sourceware.org (Postfix) with ESMTPS id BB5693858D3C for ; Fri, 24 Nov 2023 14:50:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB5693858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BB5693858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=178.154.239.144 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700837405; cv=none; b=N4WENRujZLII9Y5ThScFHUROQ8UACoqEGRlJ1DFvZFNCn8CNmXooDiby2/zbFcUWYvNCw18LyPCVc2cWO50b5uCVN8TExRCecKYIqi4j6t7vmYUdrtlh/2PtfqKE929PmrcAINIPMg3Y5cZat+NPWlZYIkohU2zF0FP23aRTWP0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700837405; c=relaxed/simple; bh=MICDa8Zz61gQwVPEIvZW07bfaVUmyhpss//qcZIyQoI=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=L4ryU0wPVraz9qgO+oVCDIdGktr/CwjzCpx68fDxN6EqPuZGSw9V12y8LzLE8dpkqJ8vQ1nKQjQQ7V2MwUXdg072RnWNrxpirkKwZLnbep2m6fzoBlpLD3nSqNtVw9UirsjFwlB7AmsogPQW+iAAIEvm5Lf8CZzkoW2t7+AreLI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:4212:0:640:eaad:0]) by forward500b.mail.yandex.net (Yandex) with ESMTP id 775D4612B1; Fri, 24 Nov 2023 17:50:01 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 0oRGg14Oq4Y0-La1hVluL; Fri, 24 Nov 2023 17:50:01 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1700837401; bh=EFUBK/Twz1HezgfMuIRNlNM33e50Cs07Mw39q0HDAhE=; h=In-Reply-To:Subject:Date:References:To:Message-ID:Reply-To:From; b=GVXkj5stNUlB5BYkOjj32jZhFN/IWTQYb6LLgGcRpTQJVqHkMlg6SpJcLMjuHACkz 4vlB+Px+HSjjX5KmXjLduBP8I08DsjxZzADs3359Te2UY2xkU7ABSgEUODE63ysugz ROgidQlEr4c2pe+wefBwu+qkCT9qS9c3fX4hRlag= Authentication-Results: mail-nwsmtp-smtp-production-main-46.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Fri, 24 Nov 2023 14:41:08 -0000 Date: Fri, 24 Nov 2023 17:41:08 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Reply-To: cygwin@cygwin.com Message-ID: <1225044972.20231124174108@yandex.ru> To: Cedric Blancher , cygwin@cygwin.com Subject: Re: Set localisation locale of Windows netstat? In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Greetings, Cedric Blancher! > How can I set the localisation locale of Windows netstat cmd from > Cygwin? LC_ALL=C does not help, a French or German Windows will use > French or German language still Use "chcp 65001" in your .bashrc or an equivalent file. Many windows console tools will resort to English if they do not recognize console code page. This includes netsh, netstat and ipconfig. To make your life easier (i.e. not to type "chcp.com" every time), place a script named something like "install-chcp-link.dash" in /etc/postinstall/ with content along the lines of > #!/bin/dash > > [ -f /usr/local/bin/chcp ] || { > ln -fsT "$( cygpath -S )/chcp.com" /usr/local/bin/chcp > } > > exit 0 and it will create a link on the next fill setup run. -- With best regards, Andrey Repin Friday, November 24, 2023 17:23:31 Sorry for my terrible english...