pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add support for automatically updating Unicode derived files
Date: Thu, 09 Jan 2020 09:15:27 +0000
Message-ID: <E1ipTuZ-0007rV-Um@gemulon.postgresql.org> (raw)

Add support for automatically updating Unicode derived files

We currently have several sets of files generated from data provided
by Unicode.  These all have ad hoc rules and instructions for updating
when new Unicode versions appear, and it's not done consistently.

This patch centralizes and automates the process and makes it part of
the release checklist.  The Unicode and CLDR versions are specified in
Makefile.global.in.  There is a new make target "update-unicode" that
downloads all the relevant files and runs the generation script.

There is also a new script for generating the table of combining
characters for ucs_wcwidth().  That table is now in a separate include
file rather than hardcoded into the middle of other code.  This is
based on the script that was used for generating
d8594d123c155aeecd47fc2450f62f5100b2fbf0, but the script itself wasn't
committed at that time.

Reviewed-by: John Naylor <john.naylor@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/c8d05f42-443e-6c23-819b-05b31759a37c@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f85a485f89e2eb38499558c7489f108994410952

Modified Files
--------------
GNUmakefile.in                                     |   4 +
contrib/unaccent/.gitignore                        |   3 +
contrib/unaccent/Makefile                          |  19 ++
contrib/unaccent/generate_unaccent_rules.py        |  10 +-
src/Makefile.global.in                             |  18 +-
src/backend/utils/mb/Unicode/Makefile              |   3 -
src/backend/utils/mb/wchar.c                       |  68 +-------
src/common/unicode/.gitignore                      |   2 +-
src/common/unicode/Makefile                        |  14 +-
src/common/unicode/README                          |  17 +-
.../unicode/generate-unicode_combining_table.pl    |  52 ++++++
src/include/common/unicode_combining_table.h       | 194 +++++++++++++++++++++
src/tools/RELEASE_CHANGES                          |   3 +
13 files changed, 313 insertions(+), 94 deletions(-)



Message-ID: <E1ipTuZ-0007rV-Um@gemulon.postgresql.org>
Permalink:  ../E1ipTuZ-0007rV-Um@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ipTuZ-0007rV-Um@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Add support for automatically updating Unicode derived files
  In-Reply-To: <E1ipTuZ-0007rV-Um@gemulon.postgresql.org>
  References: <E1ipTuZ-0007rV-Um@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