[Bug 1073247] Re: a2x: pdf output fails with german umlauts in labels

gouri stephane.gourichon_lpad at m4x.org
Fri Apr 18 12:17:44 UTC 2014


# Minimal test case

Since the simplest test case with the smallest difference between pass
and fail is often a good thing to have, here is one:

Copy-paste the lines below to test-mini-pass.asciidoc, run "a2x test-
mini-pass.asciidoc", see that it generated a PDF.

= A

A

== B

A

Now replace the "B" with an accented letter, for example "é" like below.
Or copy-paste the lines below to test-mini-fail.asciidoc, run "a2x test-mini-fail.asciidoc", see that it fails.

= A

A

== é

A


Command typed: a2x test-mini-fail.asciidoc

Observed error message:

a2x: ERROR: "dblatex" -t pdf -p "/etc/asciidoc/dblatex/asciidoc-
dblatex.xsl" -s "/etc/asciidoc/dblatex/asciidoc-dblatex.sty"   "/tmp
/test-mini-fail.xml" returned non-zero exit status 1


# Real bug ? Definitely.

Running the program on a simple document and have it fail makes it definitely a real bug. 
Strictly, it does not prove that the bug is in asciidoc. The bug may be in dblatex.

# Bug severity: high

The fact is: this bug is important because it quickly hits any user that
happen to write in a language with characters  outside 7-bit ascii and
uses a2x to generate a PDF (without any option).

It could be nice if some maintainer would look at the options mentioned
above. If the bug is really in another package (say, dblatex) then the
best thing to do is to assign the bug to that package to make
maintainers aware and have a chance to fix it.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to asciidoc in Ubuntu.
https://bugs.launchpad.net/bugs/1073247

Title:
  a2x: pdf output fails with german umlauts in labels

Status in “asciidoc” package in Ubuntu:
  Confirmed

Bug description:
  Description:	Ubuntu 12.10
  Release:	12.10

  asciidoc:
    Installiert: 8.6.7-1
    Kandidat:    8.6.7-1
    Versionstabelle:
   *** 8.6.7-1 0
          500 http://archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages
          100 /var/lib/dpkg/status

  Using german umlauts in headers or labels makes a2x -f pdf
  test.asciidoc fail. test.asciidoc is written in UTF-8.

  ...
  pdflatex -interaction=batchmode test.tex
  pdflatex failed
  test.aux:25: Missing \endcsname inserted.
  test.aux:25: leading text: ...ne erste �berschrift\relax }{section.1}{}}
  test.aux:30: Missing \endcsname inserted.
  test.aux:30: leading text: ...1}{1}{\refname \relax }{subsection.2.1}{}}
  Unexpected error occured
  Error: pdflatex compilation failed

  a2x: ERROR: "dblatex" -t pdf -p "/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s "/etc/asciidoc/dblatex/asciidoc-dblatex.sty"  -V  "/home/guenther/fh/3.Sem/wiw464_PLM/Winkelmann/test.xml" returned non-zero exit status 1
  ...

  Trying the same with tex output (a2x -f tex test.asciidoc) shows, that
  umlauts in labels are not converted to latin1.

  The bug seems to be known in Debian:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622359#10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/asciidoc/+bug/1073247/+subscriptions



More information about the foundations-bugs mailing list