From 8d533a0c40adec778a7d09ac6c8aa640d3c883f4 Mon Sep 17 00:00:00 2001 From: Zach Young Date: Sat, 2 Dec 2023 00:17:48 +0000 Subject: [PATCH] encoding/charmap: update UCM spec file URL prefix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Reviewed-by: Dominik Honnef --- encoding/charmap/maketables.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/encoding/charmap/maketables.go b/encoding/charmap/maketables.go index 002665fe..09e183f3 100644 --- a/encoding/charmap/maketables.go +++ b/encoding/charmap/maketables.go @@ -39,7 +39,7 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ var encodings = []struct { "", "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 @@ func main() { 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) } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy