BUG #13638: Exception texts from plperl has bad encoding

From: lei(at)aswsyst(dot)cz
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #13638: Exception texts from plperl has bad encoding
Date: 2015-09-25 11:23:45
Message-ID: 20150925112345.26913.28407@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 13638
Logged by: Michal Leinweber
Email address: lei(at)aswsyst(dot)cz
PostgreSQL version: 9.4.4
Operating system: Debian 8
Description:

I have UTF-8 database and using UTF-8 text in plpgsql and plperl functions.
Everything works ok, only exceptions from plperl functions have bad encoding
(maybe double encoded).

Compare output of these 2 functions:

create or replace function perl_test() returns text
language plperl as $$
return "Český text ěščřžýáíé";
$$;

create or replace function perl_test_err() returns text
language plperl as $$
elog(ERROR, "Česká chyba ěščřžýáíé");
$$;

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Munro 2015-09-25 11:59:32 Re: BUG #13636: psql numericlocale adds comma where it ought not
Previous Message Павел Самусев 2015-09-25 10:12:27 Re: BUG #13635: Interlocks at selection with array_agg