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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy