| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера