mbox

[0/2] C.UTF-8

Message ID 20210726041828.4180653-1-carlos@redhat.com
Headers

Message

Carlos O'Donell July 26, 2021, 4:18 a.m. UTC
  The following changes implement a minimally sized C.UTF-8.
First we implement the 'strcmp_collation' directive.
Then we implement C.UTF-8 with an LC_COLLATE that uses the
'strcmp_collation' directive to support using strcmp for
collation i.e. code point sorting. The final C.UTF-8 is
only ~396KiB with the largest ~346KiB in LC_CTYPE for all
of Unicode.

Carlos O'Donell (2):
  Add 'strcmp_collation' support for LC_COLLATE.
  Add generic C.UTF-8 locale (Bug 17318)

 iconv/Makefile                   |  22 ++-
 iconv/tst-iconv9.c               |  87 +++++++++
 locale/programs/ld-collate.c     |  24 ++-
 locale/programs/locfile-kw.gperf |   1 +
 locale/programs/locfile-kw.h     | 306 ++++++++++++++++---------------
 locale/programs/locfile-token.h  |   1 +
 localedata/C.UTF-8.in            | 157 ++++++++++++++++
 localedata/Makefile              |   2 +
 localedata/SUPPORTED             |   1 +
 localedata/locales/C             | 194 ++++++++++++++++++++
 10 files changed, 637 insertions(+), 158 deletions(-)
 create mode 100644 iconv/tst-iconv9.c
 create mode 100644 localedata/C.UTF-8.in
 create mode 100644 localedata/locales/C