f85a485f89
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
|
||
---|---|---|
.. | ||
Unicode | ||
conversion_procs | ||
Makefile | ||
README | ||
conv.c | ||
encnames.c | ||
iso.c | ||
mbutils.c | ||
stringinfo_mb.c | ||
wchar.c | ||
win866.c | ||
win1251.c | ||
wstrcmp.c | ||
wstrncmp.c |
README
src/backend/utils/mb/README Encodings ========= encnames.c: public functions for both the backend and the frontend. conv.c: static functions and a public table for code conversion wchar.c: mostly static functions and a public table for mb string and multibyte conversion mbutils.c: public functions for the backend only. requires conv.c and wchar.c stringinfo_mb.c: public backend-only multibyte-aware stringinfo functions wstrcmp.c: strcmp for mb wstrncmp.c: strncmp for mb win866.c: a tool to generate KOI8 <--> CP866 conversion table iso.c: a tool to generate KOI8 <--> ISO8859-5 conversion table win1251.c: a tool to generate KOI8 <--> CP1251 conversion table Introduction ------------ http://www.cprogramming.com/tutorial/unicode.html