X Tutup
Skip to content

Commit 7631828

Browse files
committed
man: switch to UTF-8 output, to work around charset issues
1 parent 38c67e2 commit 7631828

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

Makefile.am

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ EXTRA_DIST = \
506506
src/libsystemd-login.sym \
507507
introspect.awk \
508508
src/73-seat-late.rules.in \
509-
src/99-systemd.rules.in
509+
src/99-systemd.rules.in \
510+
man/custom-html.xsl
510511

511512
if ENABLE_BINFMT
512513
EXTRA_DIST += \
@@ -1758,7 +1759,7 @@ endif
17581759
if HAVE_XSLTPROC
17591760
XSLTPROC_FLAGS = \
17601761
--nonet \
1761-
--param funcsynopsis.style "'ansi'"
1762+
--stringparam funcsynopsis.style ansi
17621763

17631764
XSLTPROC_PROCESS_MAN = \
17641765
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
@@ -1771,11 +1772,11 @@ XSLTPROC_PROCESS_MAN_IN = \
17711772

17721773
XSLTPROC_PROCESS_HTML = \
17731774
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1774-
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
1775+
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) man/custom-html.xsl $<
17751776

17761777
XSLTPROC_PROCESS_HTML_IN = \
17771778
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1778-
$(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< && \
1779+
$(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) man/custom-html.xsl $< && \
17791780
mv ${@:.in=} $@
17801781

17811782
man/%.1: man/%.xml

man/custom-html.xsl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version='1.0'?> <!--*-nxml-*-->
2+
3+
<!--
4+
This file is part of systemd.
5+
6+
Copyright 2011 Lennart Poettering
7+
8+
systemd is free software; you can redistribute it and/or modify it
9+
under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
systemd is distributed in the hope that it will be useful, but
14+
WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with systemd; If not, see <http://www.gnu.org/licenses/>.
20+
-->
21+
22+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
23+
24+
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
25+
26+
<!-- Switch things to UTF-8, ISO-8859-1 is soo yesteryear -->
27+
<xsl:output method="html" encoding="UTF-8" indent="no"/>
28+
29+
</xsl:stylesheet>

0 commit comments

Comments
 (0)
X Tutup