encoding/charmap: update UCM spec file URL prefix UCM spec files used by encoding/maketables.go moved from source.icu-project.org to github.com, and maketables is failing. The new repo is at https://github.com/unicode-org/icu-data/tree/main/charset/data/ucm. Changed all UCM mappings to use the "raw endpoint" prefix, https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/…. Fixes golang/go#64504. Change-Id: Ib2ccf948ad79578efc4a0c356bb25325190dc333 GitHub-Last-Rev: 2a277c7d09c5d1c3cae1b6ccf999da67c9659192 GitHub-Pull-Request: golang/text#48 Reviewed-on: https://go-review.googlesource.com/c/text/+/546576 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Dominik Honnef <dominik@honnef.co>
diff --git a/encoding/charmap/maketables.go b/encoding/charmap/maketables.go index 002665f..09e183f 100644 --- a/encoding/charmap/maketables.go +++ b/encoding/charmap/maketables.go
@@ -39,7 +39,7 @@ "", "CodePage037", 0x3f, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM037-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM037-2.1.2.ucm", }, { "IBM Code Page 437", @@ -47,7 +47,7 @@ "", "CodePage437", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM437-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM437-2.1.2.ucm", }, { "IBM Code Page 850", @@ -55,7 +55,7 @@ "", "CodePage850", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM850-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM850-2.1.2.ucm", }, { "IBM Code Page 852", @@ -63,7 +63,7 @@ "", "CodePage852", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM852-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM852-2.1.2.ucm", }, { "IBM Code Page 855", @@ -71,7 +71,7 @@ "", "CodePage855", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM855-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM855-2.1.2.ucm", }, { "Windows Code Page 858", // PC latin1 with Euro @@ -79,7 +79,7 @@ "", "CodePage858", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/windows-858-2000.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/windows-858-2000.ucm", }, { "IBM Code Page 860", @@ -87,7 +87,7 @@ "", "CodePage860", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM860-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM860-2.1.2.ucm", }, { "IBM Code Page 862", @@ -95,7 +95,7 @@ "", "CodePage862", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM862-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM862-2.1.2.ucm", }, { "IBM Code Page 863", @@ -103,7 +103,7 @@ "", "CodePage863", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM863-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM863-2.1.2.ucm", }, { "IBM Code Page 865", @@ -111,7 +111,7 @@ "", "CodePage865", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM865-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM865-2.1.2.ucm", }, { "IBM Code Page 866", @@ -127,7 +127,7 @@ "", "CodePage1047", 0x3f, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/glibc-IBM1047-2.1.2.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/glibc-IBM1047-2.1.2.ucm", }, { "IBM Code Page 1140", @@ -135,7 +135,7 @@ "", "CodePage1140", 0x3f, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/ibm-1140_P100-1997.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/ibm-1140_P100-1997.ucm", }, { "ISO 8859-1", @@ -143,7 +143,7 @@ "", "ISO8859_1", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/iso-8859_1-1998.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/iso-8859_1-1998.ucm", }, { "ISO 8859-2", @@ -207,7 +207,7 @@ "", "ISO8859_9", encoding.ASCIISub, - "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/iso-8859_9-1999.ucm", + "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/iso-8859_9-1999.ucm", }, { "ISO 8859-10", @@ -477,7 +477,7 @@ switch { case strings.HasPrefix(e.mapping, "http://encoding.spec.whatwg.org/"): e.mapping = getWHATWG(e.mapping) - case strings.HasPrefix(e.mapping, "http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/"): + case strings.HasPrefix(e.mapping, "https://raw.githubusercontent.com/unicode-org/icu-data/main/charset/data/ucm/"): e.mapping = getUCM(e.mapping) }