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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Peter Eisentraut-3
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 <[hidden email]>
Reviewed-by: Andreas Karlsson <[hidden email]>
Discussion: https://www.postgresql.org/message-id/flat/c1909f27-c269-2ed9-12f8-3ab72c8caf7a@...

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(-)