delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/11/21/06:39:05

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: <Zz8bzcfRlts5DNYM@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAAvCNcC+Pu=4vXoOR2y_JksDcLwULuQOxS175pv7xCMc03GO1Q AT mail DOT gmail DOT com>
<20241121130620 DOT 01037ce19f7a5025d0e37b81 AT nifty DOT ne DOT jp>
<CAAvCNcBGr5Piv9yB2YoaNNFFG0Q06Eu3Ucuc1YhyhFwyy8vGhA AT mail DOT gmail DOT com>
<Zz8Ys33H2uAF_xzy AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <Zz8Ys33H2uAF_xzy@calimero.vinschen.de>
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: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin 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 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019