diff options
author | phk <phk@FreeBSD.org> | 1998-08-15 12:51:49 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-08-15 12:51:49 +0000 |
commit | 3d8fbb04c761c00bccb964d909ff50cf5fff860b (patch) | |
tree | 1e0987e30fd58d847c0b2c836dbc854557df52cc /lib/libc/locale/setrunelocale.c | |
parent | f58f152acd4a5f6f90f051ed63fa84bc4cbd9e18 (diff) | |
download | FreeBSD-src-3d8fbb04c761c00bccb964d909ff50cf5fff860b.zip FreeBSD-src-3d8fbb04c761c00bccb964d909ff50cf5fff860b.tar.gz |
I have added the support for BIG5 encoding into libc/libxpg4/mklocale.
the diff is attached below. This is done on the 3.0 source-tree.
I have test this on 2.2-stable before, but I don't have a 3.0 machine
right now.
This patch is mainly to make libc support BIG5 encoding, thus add
zh_TW.BIG5 locale to 3.0.
Submitted by: Chen Hsiung Chan <frankch@waru.life.nthu.edu.tw>
Diffstat (limited to 'lib/libc/locale/setrunelocale.c')
-rw-r--r-- | lib/libc/locale/setrunelocale.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index c65628e..8cfddab 100644 --- a/lib/libc/locale/setrunelocale.c +++ b/lib/libc/locale/setrunelocale.c @@ -47,6 +47,7 @@ extern int _none_init __P((_RuneLocale *)); #ifdef XPG4 extern int _UTF2_init __P((_RuneLocale *)); extern int _EUC_init __P((_RuneLocale *)); +extern int _BIG5_init __P((_RuneLocale *)); extern int _MSKanji_init __P((_RuneLocale *)); extern int _xpg4_setrunelocale __P((char *)); #endif @@ -128,6 +129,8 @@ _xpg4_setrunelocale(encoding) #ifdef XPG4 else if (!strcmp(rl->encoding, "EUC")) return(_EUC_init(rl)); + else if (!strcmp(rl->encoding, "BIG5")) + return(_BIG5_init(rl)); else if (!strcmp(rl->encoding, "MSKanji")) return(_MSKanji_init(rl)); #endif |