Update UCS_to_GB18030.pl with info about origin of the reference file.

This commit is contained in:
Tom Lane 2015-11-27 17:31:26 -05:00
parent e17dab53ea
commit 5afdfc9cbb
3 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,8 @@
# src/backend/utils/mb/Unicode/UCS_to_GB18030.pl
#
# Generate UTF-8 <--> GB18030 code conversion tables from
# "gb-18030-2000.xml"
# "gb-18030-2000.xml", obtained from
# http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/
#
# The lines we care about in the source file look like
# <a u="009A" b="81 30 83 36"/>

View File

@ -1,3 +1,5 @@
/* src/backend/utils/mb/Unicode/gb18030_to_utf8.map */
static const pg_local_to_utf LUmapGB18030[ 30733 ] = {
{0x8140, 0xe4b882},
{0x8141, 0xe4b884},

View File

@ -1,3 +1,5 @@
/* src/backend/utils/mb/Unicode/utf8_to_gb18030.map */
static const pg_utf_to_local ULmapGB18030[ 30733 ] = {
{0xc280, 0x81308130},
{0xc281, 0x81308131},