From 84892692fdedb753cfdd9a63b318b47ec640915f Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 13 Mar 2017 19:04:45 +0200 Subject: [PATCH] Remove obsolete references to JIS0201.TXT JIS0208.TXT. We don't use those files anymore, since commit 1de9cc0dcc. --- src/backend/utils/mb/Unicode/Makefile | 2 +- src/backend/utils/mb/Unicode/convutils.pm | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/backend/utils/mb/Unicode/Makefile b/src/backend/utils/mb/Unicode/Makefile index 10708b3e27..fa12000064 100644 --- a/src/backend/utils/mb/Unicode/Makefile +++ b/src/backend/utils/mb/Unicode/Makefile @@ -132,7 +132,7 @@ gb-18030-2000.xml windows-949-2000.xml: GB2312.TXT: $(DOWNLOAD) 'http://trac.greenstone.org/browser/trunk/gsdl/unicode/MAPPINGS/EASTASIA/GB/GB2312.TXT?rev=1842&format=txt' -JIS0201.TXT JIS0208.TXT JIS0212.TXT: +JIS0212.TXT: $(DOWNLOAD) http://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/$(@F) JOHAB.TXT KSX1001.TXT: diff --git a/src/backend/utils/mb/Unicode/convutils.pm b/src/backend/utils/mb/Unicode/convutils.pm index 0ae79a2f33..eb3c602c32 100644 --- a/src/backend/utils/mb/Unicode/convutils.pm +++ b/src/backend/utils/mb/Unicode/convutils.pm @@ -57,8 +57,11 @@ sub read_source next if (/^0x([0-9A-F]+)\s+(#.*)$/); - # Skip the first column for JIS0208.TXT - if (!/^0x([0-9A-Fa-f]+)\s+0x([0-9A-Fa-f]+)\s+(?:0x([0-9A-Fa-f]+)\s+)?(#.*)$/) + # The Unicode source files have three columns + # 1: The "foreign" code (in hex) + # 2: Unicode code point (in hex) + # 3: Unicode name + if (!/^0x([0-9A-Fa-f]+)\s+0x([0-9A-Fa-f]+)\s+(#.*)$/) { print STDERR "READ ERROR at line $. in $fname: $_\n"; exit; -- 2.40.0