[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#413045: texlive-latex-recommended: UTF8 listings error

Benoît Dejean <benoit@placenet.org> wrote:

> Package: texlive-latex-recommended
> Version: 2005.dfsg.3-1
> Severity: minor
> Hello,
> i have switched to texlive and i cannot compile an old report anymore
> It looks like listings doesn't like UTF-8 chars inside brackets.
> Is my source wrong ?

Hm, this is strange, since the versions of listings in texlive 2005 and
teTeX 3.0 (the one in etch and sid) are the same.  However, I can
reproduce the problem here.  If I change utf8 to latin1 and save the
file in iso-8859-1 encoding, then it works.

> \begin{lstlisting}[language=cpp, basicstyle=\ttfamily\footnotesize]
> void foo() {
> // réseau
> }
> \end{lstlisting}
> \end{document}

Except that cpp doesn't exist (it's 'C++'), have you defined it locally?

> Babel <v3.8g> and hyphenation patterns for english, usenglishmax, dumylang, noh
> yphenation, loaded.
> Package babel Warning: No hyphenation patterns were loaded for
> (babel)                the language `French'
> (babel)                I will use the patterns loaded for \language=0 instead.

You should probably install texlive-lang-french...

Regards, Frank
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)

Reply to: