eshkin...@gmail.com writes:

> The following bug has been logged on the website:
>
> Bug reference:      6480
> Logged by:          Sergey Burladyan
> Email address:      eshkin...@gmail.com
> PostgreSQL version: 9.1.2
> Operating system:   Debian testing
> Description:        
>
> This code incorrectly calculate width for translated text if it multibyte
> string. strlen(ct) vs. UTF-8
>
> src/bin/psql/describe.c:2100

Test case:

create table t ();
create table t_1 () inherits (t);
create table t_2 () inherits (t);
create table d () inherits (t_1, t_2);

\d+ t
\d+ d

                 Table "public.t"
 Column | Type | Modifiers | Storage | Description 
--------+------+-----------+---------+-------------
Child tables: t_1,
              t_2
Has OIDs: no

                 Table "public.d"
 Column | Type | Modifiers | Storage | Description 
--------+------+-----------+---------+-------------
Inherits: t_1,
          t_2
Has OIDs: no

English, correct indentation:
. . .
Child tables: t_1,
              t_2
. . .
Inherits: t_1,
          t_2

Russian (UTF-8), wrong indentation:

                 Таблица "public.t"
 Колонка | Тип | Модификаторы | Хранилище | Описание 
---------+-----+--------------+-----------+----------
Дочерние таблицы: t_1,
                                 t_2
Содержит OID: нет


                 Таблица "public.d"
 Колонка | Тип | Модификаторы | Хранилище | Описание 
---------+-----+--------------+-----------+----------
Наследует: t_1,
                    t_2
Содержит OID: нет

-- 
Sergey Burladyan

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply via email to