Re: pl/perl and utf-8 in sql_ascii databases - Mailing list pgsql-hackers

From Kyotaro HORIGUCHI
Subject Re: pl/perl and utf-8 in sql_ascii databases
Date
Msg-id 20120621.210258.233934549.horiguchi.kyotaro@lab.ntt.co.jp
Whole thread Raw
In response to Re: pl/perl and utf-8 in sql_ascii databases  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Responses Re: pl/perl and utf-8 in sql_ascii databases  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Ouch!

> # UtfToLocal() seems to have a bug that always report illegal
> # encoding was "UTF8" regardless of the real encoding. But
> # plper_lc_*.(sql|out) increases if the bug is fixed.

This is not a bug. The error message "invalid byte sequence for
encoding "UTF8"" meant "invalid INPUT byte sequence as encoding
"UTF8"" not encoding for output.. So the regtest patch covers all
of possible patterns - UTF8 and SQL_ASCII..

regards,

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

== My e-mail address has been changed since Apr. 1, 2012.


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Catalog/Metadata consistency during changeset extraction from wal
Next
From: Heikki Linnakangas
Date:
Subject: Re: Resource Owner reassign Locks