Allow setting the collation strength in ICU tailoring rules There was a bug that if you created an ICU collation with tailoring rules, any strength specification inside the rules was ignored. This was because we called ucol_openRules() with UCOL_DEFAULT_STRENGTH for the strength argument, which overrides the strength. This was because of faulty guidance in the ICU documentation, which has since been fixed. The correct invocation is to use UCOL_DEFAULT for the strength argument.
This fixes bug #18771 and bug #19425. Author: Daniel Verite <[email protected]> Reported-by: Ruben Ruiz <[email protected]> Reported-by: [email protected] Reported-by: Todd Lang <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/yt2ppf959236618377a072745a280e278f4be...@yt2ppf959236618.canprd01.prod.outlook.com Discussion: https://www.postgresql.org/message-id/flat/[email protected] Discussion: https://www.postgresql.org/message-id/flat/19425-58915e19dacd4f40%40postgresql.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/905e44152a1d49b90cb8d800dcaaba7981288ae2 Modified Files -------------- src/backend/utils/adt/pg_locale_icu.c | 2 +- src/test/regress/expected/collate.icu.utf8.out | 8 ++++++++ src/test/regress/sql/collate.icu.utf8.sql | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-)
