pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Support language tags in older ICU versions (53 and earlier).
Date: Tue, 21 Mar 2023 23:12:46 +0000
Message-ID: <E1pel9q-004jOQ-73@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/869650fa86adf74fca7f566c9317f6310f8b400c

Modified Files
--------------
src/backend/commands/collationcmds.c           |  8 ++---
src/backend/utils/adt/pg_locale.c              | 41 ++++++++++++++++++++++----
src/test/regress/expected/collate.icu.utf8.out |  8 +++++
src/test/regress/sql/collate.icu.utf8.sql      |  4 +++
4 files changed, 50 insertions(+), 11 deletions(-)



Message-ID: <E1pel9q-004jOQ-73@gemulon.postgresql.org>
Permalink:  ../E1pel9q-004jOQ-73@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pel9q-004jOQ-73@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Support language tags in older ICU versions (53 and earlier).
  In-Reply-To: <E1pel9q-004jOQ-73@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox