aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaura Arjona Reina <larjona@debian.org>2020-06-07 15:35:56 +0200
committerLaura Arjona Reina <larjona@debian.org>2020-06-07 15:35:56 +0200
commit65670da289081bfe5026f65ad1a1562ff265e4e9 (patch)
treed70b82765f46c97c5f4b9574e2094df7c11c4493
parentccb667cd7a2fd483c059696a8448281883f48186 (diff)
Add "-O1" to wml to be passed to htmlstrip, to avoid malformed UTF-8 in buster, until wml 2.12.2~ds1-3 or higher arrives to stable (see bug #959474)
-rw-r--r--chinese/Make.lang8
1 files changed, 7 insertions, 1 deletions
diff --git a/chinese/Make.lang b/chinese/Make.lang
index 9deca16ac92..0647f6677b1 100644
--- a/chinese/Make.lang
+++ b/chinese/Make.lang
@@ -46,6 +46,12 @@ ZHMAGIC = @if `echo $(HTMLDIR) | grep -q '^$(WMLBASE)/$(RELHTMLBASE)/internation
fi ; \
fi
+# Add "-O1" to wml to be passed to htmlstrip, to avoid malformed UTF-8
+# see bug #959474
+# This option needs to be kept in Chinese until wml 2.12.2~ds1-3 or higher
+# arrives to Debian stable
+
+WMLOPTIONSZH = -O1
WMLOUTPUT = -o UNDEFuZH@uCNuCNHKuCNTW:$(*F).zh-cn.html.tmp@g+w \
-o UNDEFuZH@uHKuCNHKuHKTWuTWHK:$(*F).zh-hk.html.tmp@g+w \
@@ -54,7 +60,7 @@ WMLPROLOG = --prolog=$(FORMAT_ZH)
# Remove initial blank line due "[ZH::]" in $(TEMPLDIR)/common_tags.wml,
# an unfortunate but necessary workaround of a bug in slice < 1.3.9
WMLEPILOG = --epilog=$(STRIP_INITIAL_BLANK_LINE)
-WML = wml $(WMLOPTIONS) $(WMLOUTPUT) $(WMLPROLOG) $(WMLEPILOG)
+WML = wml $(WMLOPTIONS) $(WMLOPTIONSZH) $(WMLOUTPUT) $(WMLPROLOG) $(WMLEPILOG)
install::
@rm -f $(HTMLDIR)/*.imgdot-1x1-transp.gif

© 2014-2024 Faster IT GmbH | imprint | privacy policy