Package: harden-doc
Version: 3.15.1
Severity: serious
Tags: patch
Justification: fails to build from source
Dear Maintainer,
*** Please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these lines ***
LaTeX complained about misconstructed UTF-8 entities in the french
translation. This was due to a mixture of Latin-1 and UTF-8-encoding.
Apparently, most files are encoded in Latin-1, but fr.po is (in its
translation part) UTF-8. po4a then mixed Latin-1 with UTF-8 into one
file, so no matter how further processing went, something would go
wrong.
I have changed po4a.cfg to define local files as latin-1, too. The
generated file is now entirely Latin-1 and not mixed.
Further down the road, the debiandoc2<latex-stuff> scripts need to
know that the files are Latin-1, not UTF. I have changed the mapping
in the Makefile for that.
Since changes in the po4a configuration file invalidate all derived
documents, I added it to the prerequisites.
Migration to UTF-8 would be a more perfect solution from my point of
view, but I would take that on only after migration to DocBook.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
-- no debconf information
>From 3c3c1c268ecd11055718dc7dbb890598c91066c9 Mon Sep 17 00:00:00 2001
From: Felix Gatzemeier <[email protected]>
Date: Sat, 1 Dec 2012 02:54:14 +0100
Subject: [PATCH] Resolved Encoding to be Latin-1 all the way through
---
Makefile | 8 ++++----
po4a/po4a.cfg | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 356bd9f..f04e40e 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ SGMLPOSRCS := $(foreach lang, $(LANGSPO), $(MANUAL).$(lang).sgml)
$(MANUAL).%.html.stamp $(MANUAL).%.txt $(MANUAL).%.ps $(MANUAL).%.pdf: \
locale=$(subst pt-br,pt_BR,\
$(subst zh-cn,zh_CN,\
- $(subst fr,fr.UTF-8,\
+ $(subst fr,fr_FR.ISO8859-1,\
$*)))
### Full guide
@@ -127,9 +127,9 @@ $(SGMLNOPOSRCS): $(MANUAL).%.sgml: $(MANUAL0).sgml
$< > $(MANUAL).$*.sgml
# Create starting SGML for each language handled with po4a
-
-$(SGMLPOSRCS): $(MANUAL).%.sgml: $(MANUAL).en.sgml $(MANUAL).en.ent po4a/po/%.po
- po4a po4a/po4a.cfg
+POACONFIG := po4a/po4a.cfg
+$(SGMLPOSRCS): $(MANUAL).%.sgml: $(MANUAL).en.sgml $(MANUAL).en.ent po4a/po/%.po $(POACONFIG)
+ po4a $(POACONFIG)
# HTML
$(MANUAL).%.html.stamp: $(MANUAL).%.sgml $(MANUAL).%.ent $(SGMLSRCS)
diff --git a/po4a/po4a.cfg b/po4a/po4a.cfg
index 88dd444..e01b677 100644
--- a/po4a/po4a.cfg
+++ b/po4a/po4a.cfg
@@ -3,5 +3,5 @@
[type: sgml] securing-debian-howto.en.sgml \
$lang:securing-debian-howto.$lang.sgml \
add_$lang:?po4a/$lang.add \
- opt:"-M ISO-8859-1"
+ opt:"-M ISO-8859-1 -L ISO-8859-1"
--
1.7.10.4