Umlauts not supported in "listings.sty" - fix included

Bug #538565 reported by Julian Bangert
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
texlive-base (Ubuntu)
New
Undecided
Unassigned
Nominated for Lucid by Julian Bangert

Bug Description

Binary package hint: texlive-latex-recommended

Ubuntu 10.04 Alpha, should also occur on 9.10.
Version 2009-7 of texlive-latex-recommended.
I ran a document including listings from a file with umlauts throught pdflatex.
I expected it to work like a breeze, as I had utf loaded, etc...

However, I got numerous obscure errors, mostly about undefined unicode characters.

Can be fixed by applying the following patch:
--- /usr/share/texmf-texlive/tex/latex/listings/listings.sty 2008-06-10
22:46:51.000000000 +0200
+++ /usr/local/share/texmf/tex/latex/listings/listings.sty 2010-03-13
22:02:34.000000000 +0100
@@ -923,6 +923,13 @@
     \lst@ProcessLetter{"24}\textdollar
     \lst@ProcessOther {"25}\%
     \lst@ProcessOther {"26}\&
+ \lst@ProcessLetter{"E4}{\"a}
+ \lst@ProcessLetter{"F6}{\"o}
+ \lst@ProcessLetter{"FC}{\"u}
+ \lst@ProcessLetter{"C4}{\"A}
+ \lst@ProcessLetter{"D6}{\"O}
+ \lst@ProcessLetter{"DC}{\"U}
+ \lst@ProcessLetter{"DF}{\ss{}}
     \lst@ProcessOther {"27}{\lst@ifupquote \textquotesingle
                                      \else \char39\relax \fi}
     \lst@ProcessOther {"2A}{\lst@ttfamily*\textasteriskcentered}

According to stackoverflow.com:
    \lst@ProcessOther {"C1}{\'A}
    \lst@ProcessOther {"E9}{\'e}
    \lst@ProcessOther {"C9}{\'E}
    \lst@ProcessOther {"ED}{\'i}
    \lst@ProcessOther {"CD}{\'I}
    \lst@ProcessOther {"F3}{\'o}
    \lst@ProcessOther {"D3}{\'O}
    \lst@ProcessOther {"FA}{\'u}
    \lst@ProcessOther {"DA}{\'U}
    \lst@ProcessOther {"F1}{ñ}
    \lst@ProcessOther {"D1}{Ñ}

helps with spanish letters.

I claim no copyright in these patches, do what you want with them ( they are assembled from various forum posts, mostly)

Tags: patch lucid
tags: added: lucid patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.