thewml / website-meta-language

An old offline HTML preprocessor (which can be used for static site generation), written in Perl and C that is still maintained for legacy reasons, but probably not recommended for new sites.
https://www.shlomifish.org/open-source/projects/website-meta-language/
GNU General Public License v2.0
14 stars 8 forks source link

Disable feature "unicode_strings" in pass 8 (htmlstrip) #40

Closed xtaran closed 4 years ago

xtaran commented 4 years ago

It only works properly if file handles are set to utf8 binmode and we can't expect that all input and output is UTF-8. So disable it completely and go back to classic Perl ASCII-only \s meaning.

See also Debian bug-report https://bugs.debian.org/959761

Source: https://salsa.debian.org/debian/wml/-/blob/master/debian/patches/fix-unicode-handling-in-htmlstrip.patch

shlomif commented 4 years ago

Rebased. Thanks!