Re: Re: A mb problem in PostgreSQL - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Re: A mb problem in PostgreSQL
Date
Msg-id 20001209130521O.t-ishii@sra.co.jp
Whole thread Raw
In response to Re: A mb problem in PostgreSQL  (Chih-Chang Hsieh <cch@cc.kmu.edu.tw>)
List pgsql-hackers
> > Please apply following one-line-patch and test it again. If it's ok, I
> > will commit it to both current and stable trees.
> >
> > !                               return (b2c3[i][1] | 0x8080U);
> 
> Yes, it's OK. Thank you!
> But I wonder why we need to "| 0x8080U"?
> b2c3[][] and BIG5toCNS()'s return value are both unsigned short,  aren't they?

b2c3 has CNS 11643-1992 value. That is, we need to add 0x8080 to
convert to EUC_TW.
--
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: selkovjr@mcs.anl.gov
Date:
Subject: Re: Indexing for geographic objects?
Next
From: Tatsuo Ishii
Date:
Subject: Re: [GENERAL] Japan pictures