Re: psql display of Unicode combining characters in 8.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql display of Unicode combining characters in 8.2
Дата
Msg-id 24653.1165800845@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  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> What about the other way around: use the \u output convention only for
> things we can specifically identify as control chars, and assume that
> anything else with zero width is a combining char?  Is there anything
> other than 0-31 and 128-159 that should really get the \u treatment?

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.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 8.2 Partition lock changes and resource queuing.
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: 8.2 Partition lock changes and resource queuing.