Your message dated Tue, 04 Mar 2008 01:15:56 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#327551: fixed in xmlto 0.0.20-1
has caused the Debian Bug report #327551,
regarding xmlto: allow generation in an encoding different from the current
locale
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
327551: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=327551
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: xmlto
Version: 0.0.18-5
Severity: wishlist
Tags: patch
Hello,
The apt-ftparchive man page is generated from an XML document. To
translate this document, the French Tranlation Team translated the
original XML, and then generated the man page from this translated XML
document.
This worked nice when the man page was generated by a Franch developer
(with an fr_FR.ISO-8859-1 locale, I supppose). But the man page of the
package is not that nice because it was generated by a buildd, with a C
locale (I suppose): all accents are converted to character entities (e.g.
é), which renders the man page hardly readable. (see #327456)
The attached patch adds a --keep-encoding to xmlto, which disables the
convertion of the XML document to the locale charmap before the xsl
processing.
Thanks in advance,
--
Nekral
--- /usr/bin/xmlto.orig 2004-06-08 05:41:47.000000000 +0200
+++ /usr/bin/xmlto 2005-09-10 23:19:04.000000000 +0200
@@ -41,6 +41,9 @@
--searchpath colon-separated list of fallback directories
--skip-validation
do not attempt to validate the input before processing
+ --keep-encoding
+ do not use the encoding of the current locale, use the
+ one of the XML document
Available FORMATs depend on the type of the XML file (which is
determined automatically).
@@ -124,28 +127,6 @@
</xsl:stylesheet>
EOF
-# Magic encoding, based on locale
-if [ -x /usr/bin/locale ]
-then
- charmap=$(locale charmap 2>/dev/null)
-
- if [ -n "$charmap" ]
- then
- encodingmod=$(${MKTEMP} ${TMPDIR:-/tmp}/xmlto-xsl.XXXXXX)
- CLEANFILES[$CLEANFILE_COUNT]="$encodingmod"
- CLEANFILE_COUNT=$(($CLEANFILE_COUNT + 1))
- cat << EOF > "$encodingmod"
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version='1.0'>
-<xsl:param name="chunker.output.encoding" select="'$charmap'"/>
-</xsl:stylesheet>
-EOF
- XSL_MODS[$XSL_MOD_COUNT]="$encodingmod"
- XSL_MOD_COUNT=$(($XSL_MOD_COUNT + 1))
- fi
-fi
-
# Make verbosity level uniformly available to called scripts
VERBOSE=0
export VERBOSE
@@ -157,10 +138,11 @@
XSLTOPTS="$XSLTOPTS --xinclude"
SKIP_VALIDATION=0
+KEEP_ENCODING=0
# Process any options
ARGS=$(${GETOPT} \
- --longoptions=help,version,extensions,searchpath:,skip-validation \
+
--longoptions=help,version,extensions,searchpath:,skip-validation,keep-encoding
\
-n xmlto -- x:m:o:p:v "$@")
[ $? != 0 ] && { usage; exit 1; }
eval set -- "$ARGS"
@@ -226,6 +208,10 @@
SKIP_VALIDATION=1
shift
;;
+ --keep-encoding)
+ KEEP_ENCODING=1
+ shift
+ ;;
--)
shift
break
@@ -239,6 +225,27 @@
exit 1
fi
+# Magic encoding, based on locale
+if [ "$KEEP_ENCODING" = "0" ] && [ -x /usr/bin/locale ]
+then
+ charmap=$(locale charmap 2>/dev/null)
+
+ if [ -n "$charmap" ]
+ then
+ encodingmod=$(${MKTEMP} ${TMPDIR:-/tmp}/xmlto-xsl.XXXXXX)
+ CLEANFILES[$CLEANFILE_COUNT]="$encodingmod"
+ CLEANFILE_COUNT=$(($CLEANFILE_COUNT + 1))
+ cat << EOF > "$encodingmod"
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+<xsl:param name="chunker.output.encoding" select="'$charmap'"/>
+</xsl:stylesheet>
+EOF
+ XSL_MODS[$XSL_MOD_COUNT]="$encodingmod"
+ XSL_MOD_COUNT=$(($XSL_MOD_COUNT + 1))
+ fi
+fi
DEST_FORMAT="$1"
case "$2" in
/*) INPUT_FILE="$2" ;;
--- End Message ---
--- Begin Message ---
Source: xmlto
Source-Version: 0.0.20-1
We believe that the bug you reported is fixed in the latest version of
xmlto, which is due to be installed in the Debian FTP archive:
xmlto_0.0.20-1.diff.gz
to pool/main/x/xmlto/xmlto_0.0.20-1.diff.gz
xmlto_0.0.20-1.dsc
to pool/main/x/xmlto/xmlto_0.0.20-1.dsc
xmlto_0.0.20-1_i386.deb
to pool/main/x/xmlto/xmlto_0.0.20-1_i386.deb
xmlto_0.0.20.orig.tar.gz
to pool/main/x/xmlto/xmlto_0.0.20.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Daniel Leidert (dale) <[EMAIL PROTECTED]> (supplier of updated xmlto package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 05 Feb 2008 02:33:44 +0100
Source: xmlto
Binary: xmlto
Architecture: source i386
Version: 0.0.20-1
Distribution: unstable
Urgency: low
Maintainer: Debian XML/SGML Group <[EMAIL PROTECTED]>
Changed-By: Daniel Leidert (dale) <[EMAIL PROTECTED]>
Description:
xmlto - XML-to-any converter
Closes: 263243 270433 293453 299461 311354 327551 353829 366707 413632 415353
Changes:
xmlto (0.0.20-1) unstable; urgency=low
.
* New upstream release 0.0.20.
- Added experimental support for the docbook-xsl/fop toolchain.
.
* debian/control (XS-DM-Upload-Allowed): Removed XS-prefix as of
dpkg version 1.14.16.
(Uploaders): Removing Graham Wilson who does not longer actively
maintain the package. Thanks for your work!
(Depends): Moved libpaper-utils to Recommends.
(Suggests): Added fop as alternative for PDF/PS creation. Added the other
supported browsers for text conversion.
* debian/rules (get-orig-source): Use trust-model 'always' for GnuPG.
* debian/patches/01_format_cp_bug_293453.dpatch: Dropped. Applied upstream.
* debian/patches/04_xmlto_filename_spaces_fix_353829.dpatch: Ditto.
* debian/patches/05_xmlto_read_stylesheet_from_stdin_299461.dpatch: Ditto.
* debian/patches/06_xmlto_avoid_broken_manpages_327551.dpatch: Ditto.
* debian/patches/02_format_fo_passivetex_check.dpatch: Renamed to
debian/patches/format_fo_passivetex_check.dpatch.
* debian/patches/03_xmlto_libpaper_173090.dpatch: Renamed to
debian/patches/xmlto_libpaper_173090.dpatch.
* debian/patches/format_fo_passivetex_check.dpatch: Adjusted.
- Just adjusted to the new code.
* debian/patches/xmlto_libpaper_173090.dpatch: Adjusted.
- Made libpaper tools optional and the first choice *over* the upstream
solution, not a complete replacement. Further fixed the test to apply
the stylesheet also to FO creaation (closes: #270433).
* debian/patches/00list: Adjusted.
.
xmlto (0.0.19-1) UNRELEASED; urgency=low
.
* New upstream release 0.0.19.
- Upstream fixed option order for find call (closes: #366707).
- Manpage is rebuilt with newer docbook-xsl stylesheets and its formatting
should be fixed now (closes: #415353).
.
* debian/compat: Raised to v5.
* debian/control: Homepage field transition. Added Vcs and
XS-DM-Upload-Allowed field.
(Standards-Version): Updated to latest 3.7.3.
(Uploaders): Added myself.
(Build-Depends): Raised debhelper to comply with compat level. Added
dpatch.
(Depends): Raised xsltproc dependency (closes: #311354).
* debian/copyright: Updated.
* debian/rules: Added a get-orig-source target to document the creation of
the .tar.gz from the .tar.bz2. Added dpatch infrastructure.
(CFLAGS): Added -Wall.
(clean): Do not ignore make result here.
(.PHONY): Removed test target.
* debian/xmlto.links: Added.
- Make text an alias for txt (closes: #263243).
* debian/watch: Slightly updated.
* debian/patches/01_format_cp_bug_293453.dpatch: Added.
- Copy the whole chunked HTML output and created manpages, even if in
sub-directories. Acknowledge NMU by Yann Dirson (closes: #293453).
* debian/patches/02_format_fo_passivetex_check.dpatch: Added.
- Just moved Graham Wilson's passivetex checks into this dpatch patch.
* debian/patches/03_xmlto_libpaper_173090.dpatch: Added.
- Just moved Graham Wilson's libpaper patch into this dpatch patch.
* debian/patches/04_xmlto_filename_spaces_fix_353829.dpatch: Added.
- Fixed a failure taking a file as argument, with spaces in its name
(closes: #353829).
* debian/patches/05_xmlto_read_stylesheet_from_stdin_299461.dpatch: Added.
- Allow xmlto to get a stylesheet from STDIN (closes: #299461, #413632).
* debian/patches/06_xmlto_avoid_broken_manpages_327551.dpatch: Added.
- Use always the whole roff character map for manpage output to avoid
broken output if environment and source locale differ (closes: #327551).
* debian/patches/00list: Added.Files:
dd7bd8754c1c4bd8c27b2404a9c615bf 962 text optional xmlto_0.0.20-1.dsc
81e4c6cb119396c1f7f983605b8c5431 119782 text optional xmlto_0.0.20.orig.tar.gz
1311f6f244a140a9f8c4dccf43091661 8222 text optional xmlto_0.0.20-1.diff.gz
a1691e872a2be4718ad328eb32c59e0e 34368 text optional xmlto_0.0.20-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFHzIyVmHaJYZ7RAb8RAojkAKCQJ/qGkHM71YbIUMxnzfQ5XehSegCcC+p+
bNkcZq1rp7Ptjr8tA08Yz4I=
=7aRi
-----END PGP SIGNATURE-----
--- End Message ---