Subject: Re: About testing locale set up.
To: None <current-users@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: current-users
Date: 04/06/2001 18:19:11
Rui-Xiang Guo <rxg@ms25.url.com.tw> typed:
: Hi, here are some codes:
: gcc localetest.c -I/usr/X11R6/include -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib         -lX11 -lXext
: then I got the a.out file and run it. It print such message (I set the locale with zh_TW.Big5):
:         LC_CTYPE = zh_TW.Big5
:         encoding = 
:         X Locale = OK

How current is your current?  Or maybe your xsrc needs to be rebuild with
current headers.

$ LC_ALL=C ./a.out
LC_CTYPE = C
encoding = 646
X Locale = OK
$ LC_ALL=en_US.ISO8859-15 ./a.out
LC_CTYPE = en_US.ISO8859-15
encoding = ISO8859-15
X Locale = OK
$ LC_ALL=zh_TW.Big5 ./a.out
LC_CTYPE = zh_TW.Big5
encoding = BIG5
X Locale = OK
$ LC_ALL=zh_TW.EucTW ./a.out
LC_CTYPE = zh_TW.eucTW
encoding = eucTW
X Locale = OK

Regards,
-- 
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff  : <gcw@zsh.org>