badly calculated width of emoji in psql
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2021-04-02T08:45:21Z
Lists: pgsql-hackers
Hi I am checked an query from https://www.depesz.com/2021/04/01/waiting-for-postgresql-14-add-unistr-function/ article. postgres=# SELECT U&'\+01F603'; ┌──────────┐ │ ?column? │ ╞══════════╡ │ 😃 │ └──────────┘ (1 row) The result is not correct. Emoji has width 2 chars, but psql calculates with just one char. Regards Pavel
Commits
-
Extend collection of Unicode combining characters to beyond the BMP
- 5bc429aacb37 15.0 landed
-
Update display widths as part of updating Unicode
- bab982161e05 15.0 landed
-
Revert "Rename unicode_combining_table to unicode_width_table"
- 1563ecbc1be8 15.0 landed
-
Change mbbisearch to return the character range
- 78ab944cd4b9 15.0 landed