8000 Fix a bug in conversion from big5 to EUC_TW (CNS 11643-1992 Plane 3) · sangli00/postgres@a860a40 · GitHub
[go: up one dir, main page]

Skip to content

Commit a860a40

Browse files
committed
Fix a bug in conversion from big5 to EUC_TW (CNS 11643-1992 Plane 3)
Thanks Chih-Chang Hsieh <cch@cc.kmu.edu.tw> for finding the bug.
1 parent 976a456 commit a860a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/mb/big5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* 1999/1/15 Tatsuo Ishii
99
*
10-
* $Id: big5.c,v 1.5 1999/05/26 15:19:54 momjian Exp $
10+
* $Id: big5.c,v 1.5.4.1 2000/12/09 04:30:04 ishii Exp $
1111
*/
1212

1313
#include "mb/pg_wchar.h"
@@ -322,7 +322,7 @@ BIG5toCNS(unsigned short big5, unsigned char *lc)
322322
if (b2c3[i][0] == big5)
323323
{
324324
*lc = LC_CNS11643_3;
325-
return (b2c3[i][1]);
325+
return (b2c3[i][1] | 0x8080U);
326326
}
327327
}
328328

0 commit comments

Comments
 (0)
0