X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32C2C3858432 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1700837420; bh=dOBblVttuHAURIttkqA/kpM+DMvvdcidLwwQ6ij+IWU=; 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=QcPuiskONZYSxuPEk3WNJnsTxvGo5TOyIBz0sKQ8nzuqMLzEIHBl4D5XXa2C6UWmD oL3ZmTsj2uM5OP4sDMKHbbuGfhn/A0+3554QFVAizXPxgNL8AQUHcxGJ4G2k2yeSb9 A/gR7KwfSNPoxcmX7fuvHg1/OzQJJ0PQVqDTObtg= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB5693858D3C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BB5693858D3C 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 X-Yandex-Fwd: 1 Date: Fri, 24 Nov 2023 17:41:08 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1225044972.20231124174108@yandex.ru> To: Cedric Blancher , cygwin AT cygwin DOT com Subject: Re: Set localisation locale of Windows netstat? In-Reply-To: References: MIME-Version: 1.0 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 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="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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... -- 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