aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/locale/setrunelocale.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1998-08-15 12:51:49 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1998-08-15 12:51:49 +0000
commit7a55a3c23091a0ccd63404fb780204470c08d4ae (patch)
treeacea031e2f370068f64b0ddd70f5d19faec74746 /lib/libc/locale/setrunelocale.c
parent15160dd67b47533ae8a829ba719db04f7d029c8b (diff)
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>
Notes
Notes: svn path=/head/; revision=38333
Diffstat (limited to 'lib/libc/locale/setrunelocale.c')
-rw-r--r--lib/libc/locale/setrunelocale.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c
index c65628ed1652..8cfddabdd26a 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