This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Question on GB encoding in glibc-2.1.X
- To: libc-alpha@cygnus.com
- Subject: Question on GB encoding in glibc-2.1.X
- From: Tung-Han Hsieh <thhsieh@linux.org.tw>
- Date: Wed, 12 May 1999 08:50:12 +0800
Hello,
I want to test the GB code locale on glibc-2.1.1. This GB code is
usually used in Mainland China, with the locale name zh_CN.GB2312.
I found one file named "libGB.so" in /usr/lib/gconv/ directory,
but no file like "GB2312.so" or "GB.so".
So I would like to ask that does glibc-2.1.X currently support GB
encoding? I mean, can we use wcstombs() & mbstowcs() functions to
convert GB code string successfully? If yes, how can I do that?
Thank you very much for your reply in advance.
(We have a zh_CN.GB2312 locale data for test. If any one want to
test it, you can get it from
ftp://xcin.linux.org.tw/pub/xcin/xcin/i18n/i18n_tool.tar.gz
In this tarball, the zh_CN.GB2312 subdirectory contains the appreciated
locale data.)
T.H.Hsieh