Support language tags in older ICU versions (53 and earlier).
Jeff Davis <jdavis@postgresql.org>
Support language tags in older ICU versions (53 and earlier). By calling uloc_canonicalize() before parsing the attributes, the existing locale attribute parsing logic works on language tags as well. Fix a small memory leak, too. Discussion: http://postgr.es/m/60da0cecfb512a78b8666b31631a636215d8ce73.camel@j-davis.com Reviewed-by: Peter Eisentraut
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/collationcmds.c | modified | +3 −5 |
| src/backend/utils/adt/pg_locale.c | modified | +35 −6 |
| src/test/regress/expected/collate.icu.utf8.out | modified | +8 −0 |
| src/test/regress/sql/collate.icu.utf8.sql | modified | +4 −0 |
Discussion
- ICU locale validation / canonicalization 46 messages · 2023-02-08 → 2023-07-07