Re: Patch: add conversion from pg_wchar to multibyte - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Patch: add conversion from pg_wchar to multibyte
Date
Msg-id 20120522.202741.528025310545384924.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: Patch: add conversion from pg_wchar to multibyte  (Alexander Korotkov <aekorotkov@gmail.com>)
Responses Re: Patch: add conversion from pg_wchar to multibyte
List pgsql-hackers
> Thanks for your comments. They clarify a lot.
> But I still don't realize how can we distinguish IS_LCPRV2 and IS_LC2?
> Isn't it possible for them to produce same pg_wchar?

If LB is in 0x90 - 0x99 range, then they are LC2.
If LB is in 0xf0 - 0xff range, then they are LCPRV2.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Changing the concept of a DATABASE
Next
From: Simon Riggs
Date:
Subject: Re: Getting rid of cheap-startup-cost paths earlier