Re: Fix pg_wchar_tbl.maxmblen - Mailing list pgsql-patches

From ITAGAKI Takahiro
Subject Re: Fix pg_wchar_tbl.maxmblen
Date
Msg-id 20070323115809.635F.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Whole thread Raw
In response to Fix pg_wchar_tbl.maxmblen  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-patches
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> wrote:

> I found wrong definitions of max bytes for a char in
> EUC_CN (3->2), EUC_TW (3->4) and MULE_INTERNAL (3->4).

Also, the length of a char in GB18030 could be 4,
though GB18030 is not supported as a server encoding.

-    {0, pg_gb18030_mblen, pg_gb18030_dsplen, pg_gb18030_verifier, 2}    /* 37; PG_GB18030 */
+    {0, pg_gb18030_mblen, pg_gb18030_dsplen, pg_gb18030_verifier, 4}    /* 37; PG_GB18030 */

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



pgsql-patches by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Fix pg_wchar_tbl.maxmblen
Next
From: Bruce Momjian
Date:
Subject: Cleanup to procarray.c