Re: BUG #5010: perl iconv function returns ? character

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: BUG #5010: perl iconv function returns ? character
Дата
Msg-id 603c8f070909042102w5efa1ae4g569f052c28e80f9b@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #5010: perl iconv function returns ? character  ("Lampa" <lampacz@gmail.com>)
Ответы Re: BUG #5010: perl iconv function returns ? character  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: BUG #5010: perl iconv function returns ? character  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Tue, Aug 25, 2009 at 8:15 AM, Lampa<lampacz@gmail.com> wrote:
>
> The following bug has been logged online:
>
> Bug reference: =C2=A0 =C2=A0 =C2=A05010
> Logged by: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Lampa
> Email address: =C2=A0 =C2=A0 =C2=A0lampacz@gmail.com
> PostgreSQL version: 8.4.0
> Operating system: =C2=A0 Debian testing/unstable
> Description: =C2=A0 =C2=A0 =C2=A0 =C2=A0perl iconv function returns ? cha=
racter
> Details:
>
> See the difference (example is the best explanation):
>
> psql -U postgres -p 5433
> psql (8.4.0, server 8.3.7)
> WARNING: psql version 8.4, server version 8.3.
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Some psql features might not work.
> Type "help" for help.
>
> postgres=3D# select my_ascii2('Bockani=C4=8Dov=C3=A1');
> =C2=A0my_ascii2
> -------------
> =C2=A0Bockanicova
> (1 row)
>
> psql -U postgres -p 5432
> psql (8.4.0)
> Type "help" for help.
>
> postgres=3D# select my_ascii2('Bockani=C4=8Dov=C3=A1');
> =C2=A0my_ascii2
> -------------
> =C2=A0Bockani?ov?
> (1 row)
>
>
> function my_ascii2 is defined:
> CREATE FUNCTION my_ascii2(text) RETURNS text AS $$ use strict; use
> Text::Iconv; my $conv =3D Text::Iconv->new("UTF8", "ASCII//TRANSLIT"); re=
turn
> $conv->convert($_[0]); $$ LANGUAGE plperlu;
>
> 8.3.x version works perfectly, 8.4.0 problem

I can't reproduce this on 8.4.0 or CVS HEAD.  I think that whatever
problem you have here is not a PostgreSQL bug.

> in more complicated queries (joins, conditions) after my_ascii2 function
> query are returned incorect count of rows

This may be related to whatever your other problem is.

...Robert

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

Предыдущее
От: "Luke Koops"
Дата:
Сообщение: BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.
Следующее
От: "Kamil Roman"
Дата:
Сообщение: BUG #5039: 'i' flag i in regexp_replace ignored for polish letters