summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii2000-12-09 04:30:04 +0000
committerTatsuo Ishii2000-12-09 04:30:04 +0000
commita860a403a92994741041e8f93b9b51848117c6cb (patch)
tree64ee760ce8b4921d20a048b7674f802bef71e0ae
parent976a456b19f3e334ceedb97dfc04dbc36316372e (diff)
Fix a bug in conversion from big5 to EUC_TW (CNS 11643-1992 Plane 3)
Thanks Chih-Chang Hsieh <[email protected]> for finding the bug.
-rw-r--r--src/backend/utils/mb/big5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/mb/big5.c b/src/backend/utils/mb/big5.c
index a9eace79a32..2c69e2429f1 100644
--- a/src/backend/utils/mb/big5.c
+++ b/src/backend/utils/mb/big5.c
@@ -7,7 +7,7 @@
*
* 1999/1/15 Tatsuo Ishii
*
- * $Id: big5.c,v 1.5 1999/05/26 15:19:54 momjian Exp $
+ * $Id: big5.c,v 1.5.4.1 2000/12/09 04:30:04 ishii Exp $
*/
#include "mb/pg_wchar.h"
@@ -322,7 +322,7 @@ BIG5toCNS(unsigned short big5, unsigned char *lc)
if (b2c3[i][0] == big5)
{
*lc = LC_CNS11643_3;
- return (b2c3[i][1]);
+ return (b2c3[i][1] | 0x8080U);
}
}