Subject: bug#53204: [patch] font-cns11643: ... unzip error

From: Brendan Tildesley <[email-masked]>
Date: Mon, 31 Jan 2022 02:59:29 +0100 (CET)

I tried updating it but came across an unzip error, maybe unicode related. I've also noticed in my Icecat there are all these icons that are showing as random korean characters, so I wonder if my configuration is wrong somehow??:

starting phase `unpack'
Archive:  /gnu/store/lcnarbk2vd6l1qj77i2s4ny92chzpbzg-Open_Data.zip
   creating: Open_Data/
   creating: Open_Data/Fonts/
  inflating: Open_Data/Fonts/png_24x24.zip  
  inflating: Open_Data/Fonts/TW-Kai-98_1.ttf  
  inflating: Open_Data/Fonts/TW-Kai-Ext-B-98_1.ttf  
  inflating: Open_Data/Fonts/TW-Kai-Plus-98_1.ttf  
  inflating: Open_Data/Fonts/TW-Sung-98_1.ttf  
  inflating: Open_Data/Fonts/TW-Sung-Ext-B-98_1.ttf  
  inflating: Open_Data/Fonts/TW-Sung-Plus-98_1.ttf  
Open_Data/Fonts/#U5168#U5b57#U5eab#U5b57#U578b#U8aaa#U660e#U6587#U4ef6.txt:  mismatching "local" filename (Open_Data/Fonts/???????????????????????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/Fonts/#U5168#U5b57#U5eab#U5b57#U578b#U8aaa#U660e#U6587#U4ef6.txt  
   creating: Open_Data/MapingTables/
   creating: Open_Data/MapingTables/Big5/
  inflating: Open_Data/MapingTables/Big5/CNS2BIG5.txt  
  inflating: Open_Data/MapingTables/Big5/CNS2BIG5_Big5E.txt  
Open_Data/MapingTables/Big5/CNS2BIG5_#U4e03#U500b#U501a#U5929#U5916#U5b57.txt:  mismatching "local" filename (Open_Data/MapingTables/Big5/CNS2BIG5_??????????????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/Big5/CNS2BIG5_#U4e03#U500b#U501a#U5929#U5916#U5b57.txt  
Open_Data/MapingTables/Big5/CNS2BIG5_#U7b26#U865f.txt:  mismatching "local" filename (Open_Data/MapingTables/Big5/CNS2BIG5_??????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/Big5/CNS2BIG5_#U7b26#U865f.txt  
  inflating: Open_Data/MapingTables/CNS2DCI.txt  
  inflating: Open_Data/MapingTables/CNS2FIN.txt  
  inflating: Open_Data/MapingTables/CNS2INC.txt  
  inflating: Open_Data/MapingTables/CNS2TAX.txt  
   creating: Open_Data/MapingTables/Unicode/
  inflating: Open_Data/MapingTables/Unicode/CNS2UNICODE_Unicode 15.txt  
  inflating: Open_Data/MapingTables/Unicode/CNS2UNICODE_Unicode 2.txt  
  inflating: Open_Data/MapingTables/Unicode/CNS2UNICODE_Unicode BMP.txt  
Open_Data/MapingTables/#U5168#U5b57#U5eab#U4e2d#U6587#U5c0d#U7167#U8868#U8aaa#U660e#U6587#U4ef6.txt:  mismatching "local" filename (Open_Data/MapingTables/????????????????????????????????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5168#U5b57#U5eab#U4e2d#U6587#U5c0d#U7167#U8868#U8aaa#U660e#U6587#U4ef6.txt  
Open_Data/MapingTables/#U5730#U653f/:  mismatching "local" filename (Open_Data/MapingTables/??????/),
         continuing with "central" filename version
   creating: Open_Data/MapingTables/#U5730#U653f/
Open_Data/MapingTables/#U5730#U653f/#U5357#U6295#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U5357#U6295#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U53f0#U4e2d#U5e02.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U53f0#U4e2d#U5e02.txt  
Open_Data/MapingTables/#U5730#U653f/#U53f0#U4e2d#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U53f0#U4e2d#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U53f0#U5317#U5e02.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U53f0#U5317#U5e02.txt  
Open_Data/MapingTables/#U5730#U653f/#U53f0#U5317#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U53f0#U5317#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U53f0#U5357#U5e02.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U53f0#U5357#U5e02.txt  
Open_Data/MapingTables/#U5730#U653f/#U53f0#U5357#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U53f0#U5357#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U53f0#U6771#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U53f0#U6771#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U5609#U7fa9#U5e02.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U5609#U7fa9#U5e02.txt  
Open_Data/MapingTables/#U5730#U653f/#U5609#U7fa9#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U5609#U7fa9#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U57fa#U9686#U5e02.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U57fa#U9686#U5e02.txt  
Open_Data/MapingTables/#U5730#U653f/#U5b9c#U862d#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U5b9c#U862d#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U5c4f#U6771#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U5c4f#U6771#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U5f70#U5316#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U5f70#U5316#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U65b0#U7af9#U5e02.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U65b0#U7af9#U5e02.txt  
Open_Data/MapingTables/#U5730#U653f/#U65b0#U7af9#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U65b0#U7af9#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U6843#U5712#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U6843#U5712#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U6f8e#U6e56#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U6f8e#U6e56#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U82b1#U84ee#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U82b1#U84ee#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U82d7#U6817#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U82d7#U6817#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U9023#U6c5f#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U9023#U6c5f#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U91d1#U9580#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U91d1#U9580#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U96f2#U6797#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U96f2#U6797#U7e23.txt  
Open_Data/MapingTables/#U5730#U653f/#U9ad8#U96c4#U5e02.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U9ad8#U96c4#U5e02.txt  
Open_Data/MapingTables/#U5730#U653f/#U9ad8#U96c4#U7e23.txt:  mismatching "local" filename (Open_Data/MapingTables/??????/?????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/MapingTables/#U5730#U653f/#U9ad8#U96c4#U7e23.txt  
   creating: Open_Data/Properties/
  inflating: Open_Data/Properties/CNS_cangjie.txt  
  inflating: Open_Data/Properties/CNS_component.txt  
  inflating: Open_Data/Properties/CNS_component_word.txt  
  inflating: Open_Data/Properties/CNS_component_word.zip  
  inflating: Open_Data/Properties/CNS_phonetic.txt  
  inflating: Open_Data/Properties/CNS_pinyin_1.txt  
  inflating: Open_Data/Properties/CNS_pinyin_2.txt  
  inflating: Open_Data/Properties/CNS_radical.txt  
  inflating: Open_Data/Properties/CNS_radical_word.txt  
  inflating: Open_Data/Properties/CNS_source.txt  
  inflating: Open_Data/Properties/CNS_stroke.txt  
  inflating: Open_Data/Properties/CNS_strokes_sequence.txt  
Open_Data/Properties/#U5168#U5b57#U5eab#U5c6c#U6027#U8cc7#U6599#U8aaa#U660e#U6587#U4ef6.txt:  mismatching "local" filename (Open_Data/Properties/?????????????????????????????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/Properties/#U5168#U5b57#U5eab#U5c6c#U6027#U8cc7#U6599#U8aaa#U660e#U6587#U4ef6.txt  
   creating: Open_Data/Voice/
  inflating: Open_Data/Voice/CNS_pinyin_voice.zip  
Open_Data/Voice/#U5168#U5b57#U5eab#U97f3#U6a94#U8aaa#U660e#U6587#U4ef6.txt:  mismatching "local" filename (Open_Data/Voice/???????????????????????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/Voice/#U5168#U5b57#U5eab#U97f3#U6a94#U8aaa#U660e#U6587#U4ef6.txt  
Open_Data/#U8cc7#U6599#U66f4#U65b0#U8aaa#U660e.txt:  mismatching "local" filename (Open_Data/??????????????????.txt),
         continuing with "central" filename version
  inflating: Open_Data/#U8cc7#U6599#U66f4#U65b0#U8aaa#U660e.txt  
error: in phase 'unpack': uncaught exception:
%exception #<&invoke-error program: "unzip" arguments: ("/gnu/store/lcnarbk2vd6l1qj77i2s4ny92chzpbzg-Open_Data.zip") exit-status: 1 term-signal: #f stop-signal: #f>

From 81861618f25285f5acc85aafd461bd958ae0eb04 Mon Sep 17 00:00:00 2001
From: Brendan Tildesley <[email-masked]>
Date: Mon, 31 Jan 2022 12:55:23 +1100
Subject: [PATCH] gnu: font-cns11643: Update to 98.1.20220104.

* gnu/packages/fonts.scm (font-cns11643): Update to 98.1.20220104.
Also, use stable archive.org link.
---
 gnu/packages/fonts.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 8afb453970..2955b98a4a 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -534,13 +534,15 @@ (define-public font-cns11643
   ;; it elsewhere to avoid suddenly losing the current source file.
   (package
     (name "font-cns11643")
-    (version "98.1.20180605")
+    (version "98.1.20220104")
     (source (origin
               (method url-fetch)
-              (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
+              (uri (string-append
+                    "https://web.archive.org/web/20220119072046/"
+                    "http://www.cns11643.gov.tw/AIDB/Open_Data.zip"))
               (sha256
                (base32
-                "000a9whrjr1cd4pjc23pbl60zwkq3wcb5g61p9qi7fn3hwkp0kyw"))))
+                "0ygq7a0gb0nah74wlvf84kss68k514dml1wkcihv2s5v5j9rys0y"))))
     (build-system font-build-system)
     (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
     (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
-- 
2.34.0