diff options
author | Laura Arjona Reina <larjona@debian.org> | 2020-06-07 15:35:56 +0200 |
---|---|---|
committer | Laura Arjona Reina <larjona@debian.org> | 2020-06-07 15:35:56 +0200 |
commit | 65670da289081bfe5026f65ad1a1562ff265e4e9 (patch) | |
tree | d70b82765f46c97c5f4b9574e2094df7c11c4493 | |
parent | ccb667cd7a2fd483c059696a8448281883f48186 (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.lang | 8 |
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 |