DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4ALBd5PB4038002 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4ALBd5PB4038002 X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com Date: Thu, 21 Nov 2024 12:38:53 +0100 To: cygwin AT cygwin DOT com Subject: Re: Cygwin zh_CN.GB18030 locale? Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: <20241121130620 DOT 01037ce19f7a5025d0e37b81 AT nifty DOT ne DOT jp> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen 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" On Nov 21 12:25, Corinna Vinschen via Cygwin wrote: > On Nov 21 05:57, Dan Shelton via Cygwin wrote: > > locale -a | grep 18030 > > You're confusing locale with codeset (or charset). > > $ locale -a | grep zh_CN > zh_CN > zh_CN.utf8 > zh_CN DOT utf8 AT cjknarrow > zh_CN AT cjknarrow > > $ locale -m | grep 18030 > GB18030 > > Note that for compat reasons, the default codeset of zh_CN is gb2312, > so you have to specify a different codeset explicitely. > > export LC_MESSAGES=zh_CN.GB18030 Please check additionally: $ locale -av $ cat /proc/locales $ cat /proc/codesets Those might be pretty helpful. Corinna -- 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