]> granicus.if.org Git - postgresql/commit
Rewrite the perl scripts to produce our Unicode conversion tables.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 30 Nov 2016 12:54:02 +0000 (14:54 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 30 Nov 2016 12:54:52 +0000 (14:54 +0200)
commit1de9cc0dcca649d1900720924f4ea5c430d1a51e
tree5815918e2c884c77b48ce75a715f628e0fd2777c
parent6c303223be34329bae2f03a87590ffa0742a65f6
Rewrite the perl scripts to produce our Unicode conversion tables.

Generate EUC_CN mappings from gb-18030-2000.xml, because GB2312.TXT is no
longer available.

Get UHC from windows-949-2000.xml, it's more up-to-date.

Plus tons more small changes. With these changes, the perl scripts
faithfully produce the *.map files we have in the repository, from the
external source files.

In the passing, fix the Makefile to also download CP932.TXT and CP950.TXT.

Based on patches by Kyotaro Horiguchi, reviewed by Daniel Gustafsson.

Discussion: https://postgr.es/m/08e7892a-d55c-eefe-76e6-7910bc8dd1f3@iki.fi
33 files changed:
src/backend/utils/mb/Unicode/Makefile
src/backend/utils/mb/Unicode/UCS_to_BIG5.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_CN.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_JIS_2004.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_JP.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_KR.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_TW.pl
src/backend/utils/mb/Unicode/UCS_to_GB18030.pl
src/backend/utils/mb/Unicode/UCS_to_JOHAB.pl [new file with mode: 0755]
src/backend/utils/mb/Unicode/UCS_to_SHIFT_JIS_2004.pl
src/backend/utils/mb/Unicode/UCS_to_SJIS.pl
src/backend/utils/mb/Unicode/UCS_to_UHC.pl [new file with mode: 0755]
src/backend/utils/mb/Unicode/UCS_to_most.pl
src/backend/utils/mb/Unicode/convutils.pm [new file with mode: 0644]
src/backend/utils/mb/Unicode/euc_jis_2004_to_utf8.map
src/backend/utils/mb/Unicode/euc_jis_2004_to_utf8_combined.map
src/backend/utils/mb/Unicode/euc_jp_to_utf8.map
src/backend/utils/mb/Unicode/euc_kr_to_utf8.map
src/backend/utils/mb/Unicode/johab_to_utf8.map
src/backend/utils/mb/Unicode/shift_jis_2004_to_utf8.map
src/backend/utils/mb/Unicode/shift_jis_2004_to_utf8_combined.map
src/backend/utils/mb/Unicode/ucs2utf.pl [deleted file]
src/backend/utils/mb/Unicode/uhc_to_utf8.map
src/backend/utils/mb/Unicode/utf8_to_euc_cn.map
src/backend/utils/mb/Unicode/utf8_to_euc_jis_2004.map
src/backend/utils/mb/Unicode/utf8_to_euc_jis_2004_combined.map
src/backend/utils/mb/Unicode/utf8_to_euc_jp.map
src/backend/utils/mb/Unicode/utf8_to_euc_kr.map
src/backend/utils/mb/Unicode/utf8_to_johab.map
src/backend/utils/mb/Unicode/utf8_to_shift_jis_2004.map
src/backend/utils/mb/Unicode/utf8_to_shift_jis_2004_combined.map
src/backend/utils/mb/Unicode/utf8_to_sjis.map
src/backend/utils/mb/Unicode/utf8_to_uhc.map