git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1563ecb) | patch
Update display widths as part of updating Unicode
2021年8月26日 14:53:56 +0000 (10:53 -0400)
2021年8月26日 14:53:56 +0000 (10:53 -0400)
commit bab982161e0590746a2fd2a03043b27108b23ac6
Update display widths as part of updating Unicode

The hardcoded "wide character" set in ucs_wcwidth() was last updated
around the Unicode 5.0 era. This led to misalignment when printing
emojis and other codepoints that have since been designated
wide or full-width.

To fix and keep up to date, extend update-unicode to download the list
of wide and full-width codepoints from the offical sources.

In passing, remove some comments about non-spacing characters that
haven't been accurate since we removed the former hardcoded logic.

Jacob Champion

Reported and reviewed by Pavel Stehule
Discussion: https://www.postgresql.org/message-id/flat/CAFj8pRCeX21O69YHxmykYySYyprZAqrKWWg0KoGKdjgqcGyygg@mail.gmail.com
src/common/unicode/.gitignore diff | blob | blame | history
src/common/unicode/Makefile diff | blob | blame | history
src/common/unicode/generate-unicode_east_asian_fw_table.pl [new file with mode: 0644] blob
src/common/wchar.c diff | blob | blame | history
src/include/common/unicode_east_asian_fw_table.h [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /