Cygwin zh_CN.GB18030 locale?

Thomas Wolff towo@towo.net
Thu Nov 21 08:36:58 GMT 2024


Am 21.11.2024 um 06:55 schrieb Dan Shelton via Cygwin:
> ...
> What do I have to install and do to get a single MinTTY running with
> bash with a GB18030 locale, while the rest of the Windows session
> remains English?
You can use the different locale categories, e.g.
LC_MESSAGES=en_GB LC_CTYPE=zh_CN.GB18030 app
to run an application "app" in GB18030 but still using English text for
messages.
(Actually mintty does not change its Options menu text on LC_MESSAGES,
maybe that should be changed.)
Note 1: LC_ALL should remain empty in this case as it overrides all the
other LC_s.
Note 2: This only affects a new application session spawned from the
current command line.
Note 3: Windows ignores LC_ settings anyway.

Am 21.11.2024 um 05:57 schrieb Dan Shelton via Cygwin:
> On Thu, 21 Nov 2024 at 05:06, Takashi Yano <takashi.yano@nifty.ne.jp> wrote:
>> On Thu, 21 Nov 2024 00:16:41 +0100
>> Dan Shelton wrote:
>>> Does Cygwin have a zh_CN.GB18030 locale?
>> I think so.
>>
>> $ locale
>> LANG=zh_CN.GB18030@cjknarrow
>> LC_CTYPE="zh_CN.GB18030@cjknarrow"
>> LC_NUMERIC="zh_CN.GB18030@cjknarrow"
>> LC_TIME="zh_CN.GB18030@cjknarrow"
>> LC_COLLATE="zh_CN.GB18030@cjknarrow"
>> LC_MONETARY="zh_CN.GB18030@cjknarrow"
>> LC_MESSAGES="zh_CN.GB18030@cjknarrow"
>> LC_ALL=
>> $ cp
>> cp: 缺少了文件操作数
>> 请尝试执行 "cp --help" 来获取更多信息。
>>
>> (maybe garbled due to my mailer)
> Looks good, except that on Win10 Enterprise Cygwin 3.5.4 locale -a says:
> locale -a | grep 18030
> Nothing
As cygwin (unlike the restrictive Linux locale system) allows flexible
combination of all language indication (before the dot) with all codeset
indications (after the dot), listing them all would be very very long. I
don't know the criteria by which cygwin lists locales.
Thomas

>
> Dan



More information about the Cygwin mailing list