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 Unicode full case mapping and conversion.
Date: Fri, 17 Jan 2025 23:59:48 +0000
Message-ID: <E1tYwFg-0029Dj-L5@gemulon.postgresql.org> (raw)

Support Unicode full case mapping and conversion.

Generate tables from Unicode SpecialCasing.txt to support more
sophisticated case mapping behavior:

 * support case mappings to multiple codepoints, such as "ß"
   uppercasing to "SS"
 * support conditional case mappings, such as the "final sigma"
 * support titlecase variants, such as "dž" uppercasing to "DŽ" but
   titlecasing to "Dž"

Discussion: https://postgr.es/m/ddfd67928818f138f51635712529bc5e1d25e4e7.camel@j-davis.com
Discussion: https://postgr.es/m/27bb0e52-801d-4f73-a0a4-02cfdd4a9ada@eisentraut.org
Reviewed-by: Peter Eisentraut, Daniel Verite

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/286a365b9c25479f8ad82043ed136748733adfa6

Modified Files
--------------
src/backend/utils/adt/pg_locale_builtin.c         |    6 +-
src/common/unicode/Makefile                       |    4 +-
src/common/unicode/case_test.c                    |  202 +-
src/common/unicode/generate-unicode_case_table.pl |  161 +-
src/common/unicode/meson.build                    |    4 +-
src/common/unicode_case.c                         |  158 +-
src/include/common/unicode_case.h                 |    8 +-
src/include/common/unicode_case_table.h           | 6094 +++++++++++----------
src/tools/pgindent/typedefs.list                  |    1 +
9 files changed, 3645 insertions(+), 2993 deletions(-)



Message-ID: <E1tYwFg-0029Dj-L5@gemulon.postgresql.org>
Permalink:  ../E1tYwFg-0029Dj-L5@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tYwFg-0029Dj-L5@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 Unicode full case mapping and conversion.
  In-Reply-To: <E1tYwFg-0029Dj-L5@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