Treat Unicode codepoints of category "Format" as non-spacing
John Naylor <john.naylor@postgresql.org>
Treat Unicode codepoints of category "Format" as non-spacing Commit d8594d123 updated the list of non-spacing codepoints used for calculating display width, but in doing so inadvertently removed some, since the script used for that commit only considered combining characters. For complete coverage for zero-width characters, include codepoints in the category Cf (Format). To reflect the wider purpose, also rename files and update comments that referred specifically to combining characters. Some of these ranges have been missing since v12, but due to lack of field complaints it was determined not important enough to justify adding special-case logic the backbranches. Kyotaro Horiguchi Report by Pavel Stehule Discussion: https://www.postgresql.org/message-id/flat/CAFj8pRBE8yvpQ0FSkPCoe0Ny1jAAsAQ6j3qMgVwWvkqAoaaNmQ%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/common/unicode/generate-unicode_nonspacing_table.pl (from src/common/unicode/generate-unicode_combining_table.pl) | renamed | +7 −5 |
| src/common/unicode/Makefile | modified | +2 −2 |
| src/common/wchar.c | modified | +4 −4 |
| src/include/common/unicode_nonspacing_table.h (from src/include/common/unicode_combining_table.h) | renamed | +21 −12 |
Discussion
- broken table formatting in psql 14 messages · 2022-09-01 → 2022-09-13