Fix a bug in conversion from big5 to EUC_TW (CNS 11643-1992 Plane 3)
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 9 Dec 2000 04:30:04 +0000 (04:30 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 9 Dec 2000 04:30:04 +0000 (04:30 +0000)
Thanks Chih-Chang Hsieh <cch@cc.kmu.edu.tw> for finding the bug.

src/backend/utils/mb/big5.c

index 706eef93a0e0dc0005eeaf76041a6f1f80b5501f..01207c34331181b6e883281ec84b205bd077bbef 100644 (file)
@@ -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);
                        }
                }