pgsql: Add support for other normal forms to Unicode normalization API

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add support for other normal forms to Unicode normalization API
Date: 2020-03-24 09:18:50
Message-ID: E1jGfhy-0005zW-3k@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add support for other normal forms to Unicode normalization API

It previously only supported NFKC, for use by SASLprep. This expands
the API to offer the choice of all four normalization forms. Right
now, there are no internal users of the forms other than NFKC.

Reviewed-by: Daniel Verite <daniel(at)manitou-mail(dot)org>
Reviewed-by: Andreas Karlsson <andreas(at)proxel(dot)se>
Discussion: https://www.postgresql.org/message-id/flat/c1909f27-c269-2ed9-12f8-3ab72c8caf7a(at)2ndquadrant(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d40d564c5a920e1121b28463dfed74441cbae5c0

Modified Files
--------------
src/common/saslprep.c | 2 +-
src/common/unicode/generate-norm_test_table.pl | 9 +-
src/common/unicode/generate-unicode_norm_table.pl | 20 +-
src/common/unicode/norm_test.c | 23 +-
src/common/unicode_norm.c | 31 +-
src/include/common/unicode_norm.h | 10 +-
src/include/common/unicode_norm_table.h | 7334 +++++++++++----------
7 files changed, 3727 insertions(+), 3702 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2020-03-24 14:17:15 pgsql: Some refactoring of logical/worker.c
Previous Message Andres Freund 2020-03-24 05:59:37 pgsql: Report wait event for cost-based vacuum delay.