summaryrefslogtreecommitdiff
path: root/src/common/saslprep.c
diff options
context:
space:
mode:
authorPeter Eisentraut2020-03-24 07:49:52 +0000
committerPeter Eisentraut2020-03-24 09:02:46 +0000
commitd40d564c5a920e1121b28463dfed74441cbae5c0 (patch)
tree7a3cc5d8353896fb5abafeee9eaf63952beb2563 /src/common/saslprep.c
parentcedffbdb8b137325a79e07a976457bc2314adf9b (diff)
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@manitou-mail.org> Reviewed-by: Andreas Karlsson <andreas@proxel.se> Discussion: https://www.postgresql.org/message-id/flat/c1909f27-c269-2ed9-12f8-3ab72c8caf7a@2ndquadrant.com
Diffstat (limited to 'src/common/saslprep.c')
-rw-r--r--src/common/saslprep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/saslprep.c b/src/common/saslprep.c
index 7739b81807e..2dedf6b0fb6 100644
--- a/src/common/saslprep.c
+++ b/src/common/saslprep.c
@@ -1156,7 +1156,7 @@ pg_saslprep(const char *input, char **output)
* 2) Normalize -- Normalize the result of step 1 using Unicode
* normalization.
*/
- output_chars = unicode_normalize_kc(input_chars);
+ output_chars = unicode_normalize(UNICODE_NFKC, input_chars);
if (!output_chars)
goto oom;