BUG #13638: Exception texts from plperl has bad encoding

Поиск
Список
Период
Сортировка
От lei@aswsyst.cz
Тема BUG #13638: Exception texts from plperl has bad encoding
Дата
Msg-id 20150925112345.26913.28407@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #13638: Exception texts from plperl has bad encoding  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      13638
Logged by:          Michal Leinweber
Email address:      lei@aswsyst.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 ěščřžýáíé");
$$;

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Павел Самусев
Дата:
Сообщение: Re: BUG #13635: Interlocks at selection with array_agg
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #13636: psql numericlocale adds comma where it ought not