summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/convert.c3
-rw-r--r--sample/pttbbs.conf3
2 files changed, 5 insertions, 1 deletions
diff --git a/mbbsd/convert.c b/mbbsd/convert.c
index 6e620e23..133c249d 100644
--- a/mbbsd/convert.c
+++ b/mbbsd/convert.c
@@ -1,4 +1,5 @@
/* $Id: convert.c 1374 2003-11-27 14:11:40Z victor $ */
+#include "bbs.h"
/*
* The following code is copied and modified from "autoconvert" with GPL.
*/
@@ -55,7 +56,7 @@ static void b2g(char *s)
s[0] = BtoG_bad1; s[1] = BtoG_bad2;
}
-signed char *gb2big(unsigned char *s, int plen)
+unsigned char *gb2big(unsigned char *s, int plen)
{
unsigned char c = 0;
return hzconvert(s, &plen, &c, g2b);
diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf
index 2bfd3b98..20b6b30b 100644
--- a/sample/pttbbs.conf
+++ b/sample/pttbbs.conf
@@ -94,6 +94,9 @@
須要加跑 shmctl timed 來提供時間 */
//#define OUTTA_TIMER
+/* 若定義, 則開啟正體中文轉簡體中文的功能 */
+//#define GB_CONVERT
+
/* 若定義, 則啟動 bbs中連至 BLOG 的 interface
請參閱 pttbbs/blog/ */
//#define BLOGDB_HOST "10.1.1.1"