Re: psql display of Unicode combining characters in 8.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql display of Unicode combining characters in 8.2
Дата
Msg-id 21550.1167248981@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: psql display of Unicode combining characters in 8.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql display of Unicode combining characters in 8.2  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-hackers
I wrote:
> Actually, looking at the comments for ucs_wcwidth() in wchar.c, it seems
> that this is already accounted for in the "dsplen" output: characters
> for which -1 is returned are control characters, characters for which
> 0 is returned should be printed as-is and counted as zero width.  So the
> bug is just that pg_wcsformat conflates the two cases.

I've applied the attached patch to fix this, but not being much of a
user of languages that have combining characters, I can't test it very
well.  Please check out the behavior and see if you like it.

            regards, tom lane


Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgindent infelicity
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Allow the identifier length to be increased via a configure option