[xml/sgml-pkgs] Bug#738626: Depending on locale, xmlto creates wrong epub encoding

Ole Streicher debian at liska.ath.cx
Tue Feb 11 12:31:08 UTC 2014


Package: xmlto
Version: 0.0.25.2
Severity: normal

When I run xmlto without a certain (UTF) charmap set, an encoding is set
into the output epub encoding. As an example, take the developers
reference and issue

$ LC_ALL=C xmlto epub index.dbk

$ unzip -p index.epub OEBPS/index.html|head -1

shows then

<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?>

("LC_ALL=C locale charmap" shows ANSI_X3.4-1968 as charmap)

However, the encoding of an epub file must be UTF-8 or UTF-16, as one
can check by epubcheck:

$ epubcheck index.dbk

shows errors like

"Only UTF-8 and UTF-16 encodings are allowed, detected ANSI_X3.4-1968"

This problem appears in the generation of the developers-reference
package; see also http://bugs.debian.org/738566



More information about the debian-xml-sgml-pkgs mailing list