Re: BUG #15548: Unaccent does not remove combining diacritical characters
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>, hugh@whtc.ca, daniel@manitou-mail.org, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2018-12-18T06:07:35Z
Lists: pgsql-bugs, pgsql-hackers
On Tue, Dec 18, 2018 at 12:36:02AM -0500, Tom Lane wrote: > tl;dr: I think we should convert unaccent.sql and unaccent.out > to UTF8 encoding. Then, adding more test cases for this patch > will be easy. Do you think that we could also remove the non-ASCII characters from the tests? It would be easy enough to use E'\xNN' (utf8 hex) or such in input, and show the output with bytea. That's harder to read, still we discussed about not using UTF-8 in the python script to allow folks with simple terminals to touch the code the last time this was touched (5e8d670) and the characters used could be documented as comments in the tests. -- Michael
Commits
-
Fix unaccent generation script in Windows
- 0afc0a784188 13.0 landed
-
Add combining characters to unaccent.rules.
- 456e3718e7b7 12.0 landed
-
Update unaccent rules with release 34 of CLDR for Latin-ASCII.xml
- e1c1d5444e43 12.0 landed
-
unaccent: Make generate_unaccent_rules.py Python 3 compatible
- 3d59da9ccdb9 12.0 landed
-
Convert unaccent tests to UTF-8
- b6f3649bba98 12.0 landed