[lintian] 01/01: d/rules: Set UTF-8 charset in generated HTML docs
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit c81ac75e4bf038f2d8505d8983a7f2e15c79749d
Author: Niels Thykier <niels@thykier.net>
Date: Sun Jun 25 07:44:27 2017 +0000
d/rules: Set UTF-8 charset in generated HTML docs
Thanks: Paul Hardy <unifoundry@gmail.com>
Signed-off-by: Niels Thykier <niels@thykier.net>
---
debian/changelog | 6 ++++++
debian/rules | 2 ++
2 files changed, 8 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 1f85fa9..d4dda9a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,12 @@ lintian (2.5.52) UNRELEASED; urgency=medium
* data/spelling/corrections:
+ [AB] Remove "iff". It's a valid English word. (Closes: #865055)
+ * debian/rules:
+ + [JW, NT] Post process HTML docmentation to set the charset to UTF-8,
+ which fixes mojibake in the Debian Policy Manual links. Thanks to
+ Paul Hardy for finding a solution to the problem.
+ (Closes: #802721)
+
* lib/Lintian/Util.pm:
+ [NT] Fix uninitialized warning if a fork call fails.
diff --git a/debian/rules b/debian/rules
index a56f63b..4037125 100755
--- a/debian/rules
+++ b/debian/rules
@@ -65,6 +65,8 @@ generate-docs-stamp: $(docsource)
dh_testdir
cd doc && LC_ALL=C docbook2html -V "%use-id-as-filename%" -o lintian.html lintian.xml
cd doc && LC_ALL=C jw -b txt lintian.xml
+ # docbook does not set a charset and we rely on UTF-8. Make this explicit to avoid #802721
+ find doc/lintian.html/ -type f -name '*.html' -exec perl -pe 's/(<TITLE[\s\r\n])/<meta charset="UTF-8">$$1/' -i {} +
mkdir -p man/man1/ man/man3/
private/generate-lintian-pod | \
$(pod2man) --name lintian --section=1 > man/man1/lintian.1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: