Debian Bug report logs - #413045
texlive-latex-recommended: UTF8 listings error

version graph

Package: texlive-latex-recommended; Maintainer for texlive-latex-recommended is Debian TeX Maintainers <debian-tex-maint@lists.debian.org>; Source for texlive-latex-recommended is src:texlive-base.

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

Date: Thu, 1 Mar 2007 20:27:01 UTC

Severity: minor

Tags: upstream

Found in version texlive-base/2005.dfsg.3-1

Done: Norbert Preining <preining@logic.at>

Bug is archived. No further changes may be made.

Forwarded to Brooks Moses <bmoses@stanford.edu>

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Benoît Dejean <benoit@placenet.org>:
New Bug report received and forwarded. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Benoît Dejean <benoit@placenet.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: texlive-latex-recommended: UTF8 listings error
Date: Thu, 01 Mar 2007 21:20:11 +0100
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

\documentclass[a4paper, 12pt]{report}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage{listings}

\begin{document}

\begin{lstlisting}[language=sh, basicstyle=\ttfamily\footnotesize]
ip prefix-list FILTRE_ANNONCES_ENTRANTES seq 5  deny <réseau> le 32
\end{lstlisting}

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

\end{document}



latex Rapport.tex
This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5)
entering extended mode
(./Rapport.tex
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/report.cls
Document Class: report 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
(/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
(/usr/share/texmf-texlive/tex/latex/base/utf8.def
(/usr/share/texmf-texlive/tex/latex/base/t1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/ot1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/omsenc.dfu)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
(/usr/share/texmf-texlive/tex/generic/babel/babel.sty
(/usr/share/texmf-texlive/tex/generic/babel/frenchb.ldf
(/usr/share/texmf-texlive/tex/generic/babel/babel.def)

Package babel Warning: No hyphenation patterns were loaded for
(babel)                the language `French'
(babel)                I will use the patterns loaded for \language=0 instead.

*************************************
* Local config file frenchb.cfg used
*
(/usr/share/texmf-texlive/tex/generic/babel/frenchb.cfg)))
(/usr/share/texmf-texlive/tex/latex/listings/listings.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstpatch.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstmisc.sty)
(/usr/share/texmf-texlive/tex/latex/listings/listings.cfg)) (./Rapport.aux)
(/usr/share/texmf/tex/latex/lm/t1lmr.fd)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty)
(/usr/share/texmf-texlive/tex/latex/base/t1cmtt.fd)

! Package inputenc Error: Unicode char \u8:�\expandafter not set up for use wit
h LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.13 ...E_ANNONCES_ENTRANTES seq 5  deny <réseau>
                                                   le 32
?

It looks like listings doesn't like UTF-8 chars inside brackets.
Is my source wrong ?

Thanks.




######################################
 List of ls-R files

-rw-r--r-- 1 root root 983 2007-03-01 20:35 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 2007-02-27 23:42 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 27 2007-03-01 20:31 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
lrwxrwxrwx 1 root root 27 2007-03-01 20:31 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
######################################
 Config files
lrwxrwxrwx 1 root root 20 2007-02-27 23:42 /usr/share/texmf/web2c/texmf.cnf -> /etc/texmf/texmf.cnf
-rw-r--r-- 1 root root 5931 2007-03-01 20:35 /var/lib/texmf/web2c/fmtutil.cnf
-rw-r--r-- 1 root root 7710 2007-03-01 20:35 /var/lib/texmf/web2c/updmap.cfg
-rw-r--r-- 1 root root 4481 2007-03-01 20:35 /var/lib/texmf/tex/generic/config/language.dat

-- System Information:
Debian Release: sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.1-ben
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)

Versions of packages texlive-latex-recommended depends on:
ii  texlive-common             2005.dfsg.3-1 TeX Live: Base component
ii  texlive-latex-base         2005.dfsg.3-1 TeX Live: Basic LaTeX packages

Versions of packages texlive-latex-recommended recommends:
ii  latex-beamer   3.06.dfsg.1-0.1           LaTeX class to produce presentatio
ii  latex-xcolor   2.09-1                    Easy driver-independent TeX class 
ii  prosper        1.00.4+cvs.2006.10.22-1.1 LaTeX class for writing transparen

Versions of packages tex-common depends on:
ii  debconf [debconf-2.0]         1.5.11     Debian configuration management sy
ii  ucf                           2.0018.1   Update Configuration File: preserv

Versions of packages texlive-latex-recommended is related to:
pn  tetex-base                    <none>     (no description available)
pn  tetex-bin                     <none>     (no description available)
pn  tetex-extra                   <none>     (no description available)

-- debconf information:
  tex-common/singleuser: false
  tex-common/check_texmf_wrong:
  tex-common/check_texmf_missing:



Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #10 received at submit@bugs.debian.org (full text, mbox):

From: Frank Küster <frank@debian.org>
To: Benoît Dejean <benoit@placenet.org>
Cc: 413045@bugs.debian.org, Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Fri, 02 Mar 2007 16:58:34 +0100
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)



Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #20 received at submit@bugs.debian.org (full text, mbox):

From: Frank Küster <frank@debian.org>
To: 413045@bugs.debian.org
Cc: Benoît Dejean <benoit@placenet.org>, Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Fri, 02 Mar 2007 17:42:10 +0100
Frank Küster <frank@debian.org> wrote:

> 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.

I found that it also works with utf8 when you add

\lstset{extendedchars=false}

I've not found the string "utf" in the documentation of listings-1.3,
but in the PDF for 1.4 on CTAN.  Even that one doesn't talk about
general utf encoding, only about CJK and similar things.

I'll ask the upstream author.

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



Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #30 received at 413045@bugs.debian.org (full text, mbox):

From: Frank Küster <frank@debian.org>
To: Brooks Moses <bmoses@dpdx.net>
Cc: 413045@bugs.debian.org, Benoît Dejean <benoit@placenet.org>
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Fri, 02 Mar 2007 17:49:20 +0100
Dear Brooks,

a user of listings in Debian noticed that there's a small glitch when
the file is saved in UTF-8 encoding.  It is already mentioned in the
documentation, but only takes into account CJK-latex or the ucs
package.  Actually, the inputenc package also supports utf8.  

I think it would be a good idea to document the "extendedchars=false"
workaround also for that, much more common, case, or make it unnecessary
(cannot this be detected automatically?).

A test document is below (Benoît, I don't think the <..> are special, it
also fails in the second listing after s/cpp/C++/).

Regards, Frank

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

> \documentclass[a4paper, 12pt]{report}
>
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage[francais]{babel}
> \usepackage{listings}
>
> \begin{document}
>
> \begin{lstlisting}[language=sh, basicstyle=\ttfamily\footnotesize]
> ip prefix-list FILTRE_ANNONCES_ENTRANTES seq 5  deny <réseau> le 32
> \end{lstlisting}
>
> \begin{lstlisting}[language=cpp, basicstyle=\ttfamily\footnotesize]
> void foo() {
> // réseau
> }
> \end{lstlisting}
>
> \end{document}




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



Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Benoît Dejean <benoit@placenet.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #35 received at 413045@bugs.debian.org (full text, mbox):

From: Benoît Dejean <benoit@placenet.org>
To: Frank Küster <frank@debian.org>
Cc: 413045@bugs.debian.org
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Fri, 02 Mar 2007 19:22:09 +0000
[Message part 1 (text/plain, inline)]
Le vendredi 02 mars 2007 à 17:42 +0100, Frank Küster a écrit :
> Frank Küster <frank@debian.org> wrote:
> 
> > 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.
> 
> I found that it also works with utf8 when you add
> 
> \lstset{extendedchars=false}
> 
> I've not found the string "utf" in the documentation of listings-1.3,
> but in the PDF for 1.4 on CTAN.  Even that one doesn't talk about
> general utf encoding, only about CJK and similar things.

(cpp was a mistake)

<> fail too :

! Package inputenc Error: Unicode char \u8:�\expandafter not set up for
use wit
h LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.13 ...E_ANNONCES_ENTRANTES seq 5  deny <réseau>
                                                   le 32
?
! Emergency stop.

or with ucs/utf8x

See the utf8x package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.214 ..._ANNONCES_ENTRANTES seq 5  deny <réseau>
                                                   le 32
?

> I'll ask the upstream author.

Thanks.

Using \lstset{extendedchars=false makes it compile, but the output dvi
is wrong. Instead of "// réseau" it renders "// érseau".

-- 
Benoît Dejean
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #40 received at 413045@bugs.debian.org (full text, mbox):

From: Frank Küster <frank@kuesterei.ch>
To: Brooks Moses <bmoses@dpdx.net>
Cc: 413045@bugs.debian.org, Benoît Dejean <benoit@placenet.org>
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Tue, 06 Mar 2007 13:38:15 +0100
Frank Küster <frank@debian.org> wrote:

> Dear Brooks,
>
> a user of listings in Debian noticed that there's a small glitch when
> the file is saved in UTF-8 encoding.

Hm, Benoît has pointed out that it's more than "a small glitch"

> I think it would be a good idea to document the "extendedchars=false"
> workaround also for that, much more common, case, or make it unnecessary
> (cannot this be detected automatically?).

The problem is that the dvi file produced with extendedchares=false is
wrong.  Instead of 'réseau', it prints 'érseau':

\documentclass[a4paper, 12pt]{report}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage{listings}

\lstset{extendedchars=false}

\begin{document}

\begin{lstlisting}[language=sh, basicstyle=\ttfamily\footnotesize]
ip prefix-list FILTRE_ANNONCES_ENTRANTES seq 5  deny <réseau> le 32
\end{lstlisting}

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

\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% coding: utf-8-unix
%%% End: 

The resulting dvi file is at 

http://people.debian.org/~frank/413045-listings-encoding.dvi

Any idea how to fix this?

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



Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Brooks Moses <bmoses@stanford.edu>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #45 received at 413045@bugs.debian.org (full text, mbox):

From: Brooks Moses <bmoses@stanford.edu>
To: Frank Küster <frank@kuesterei.ch>, Brooks Moses <bmoses@dpdx.net>
Cc: 413045@bugs.debian.org,Benoît Dejean <benoit@placenet.org>
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Tue, 06 Mar 2007 12:40:10 -0800
At 04:38 AM 3/6/2007, Frank Küster wrote:
>Hm, Benoît has pointed out that it's more than "a small glitch"
>
> > I think it would be a good idea to document the "extendedchars=false"
> > workaround also for that, much more common, case, or make it unnecessary
> > (cannot this be detected automatically?).
>
>The problem is that the dvi file produced with extendedchares=false is
>wrong.  Instead of 'réseau', it prints 'érseau':
[...]
>Any idea how to fix this?

Unfortunately, at this point the only suggestion I have is that extended 
characters from packages that support multibyte characters need to go 
within TeX escapes within the listing.  I believe that works.  (To do that 
within the C++ example you included, just include "texcl" to the lstset 
options list.  It's a bit more complicated in the sh example, and there may 
not be a completely satisfactory solution there.)

I had thought that extendedchars=false was sufficient, because the problem 
was originally reported with Chinese characters, where the misordering (and 
incorrect font, in some cases) is not visible, since they're not mixed with 
non-extended characters.  It seems that I was wrong.

Unfortunately, making listings compatible with multibyte characters is 
going to be a long-term project.  It is, however, the top long-term project 
on my priority queue, which means that there is some possibility that it 
will happen by the 1.5 release.

Sorry I don't have better news.
- Brooks




Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #50 received at 413045@bugs.debian.org (full text, mbox):

From: Frank Küster <frank@kuesterei.ch>
To: Brooks Moses <bmoses@stanford.edu>
Cc: Brooks Moses <bmoses@dpdx.net>, 413045@bugs.debian.org, Benoît Dejean <benoit@placenet.org>
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Wed, 07 Mar 2007 08:00:03 +0100
Brooks Moses <bmoses@stanford.edu> wrote:

> Unfortunately, making listings compatible with multibyte characters is
> going to be a long-term project.  It is, however, the top long-term
> project on my priority queue, which means that there is some
> possibility that it will happen by the 1.5 release.
>
> Sorry I don't have better news.

Well, thanks anyway.  There's still hope ;-)

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



Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Tags added: upstream Request was from Frank Küster <frank@kuesterei.ch> to control@bugs.debian.org. Full text and rfc822 format available.

Noted your statement that Bug has been forwarded to Brooks Moses <bmoses@stanford.edu>. Request was from Frank Küster <frank@kuesterei.ch> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #141 received at 413045@bugs.debian.org (full text, mbox):

From: Frank Küster <frank@debian.org>
To: Brooks Moses <bmoses@stanford.edu>
Cc: 413045@bugs.debian.org, Brooks Moses <bmoses@dpdx.net>, Benoît Dejean <benoit@placenet.org>
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Wed, 07 Mar 2007 08:12:23 +0100
Brooks Moses <bmoses@stanford.edu> wrote:

> At 04:38 AM 3/6/2007, Frank Küster wrote:
>>Hm, Benoît has pointed out that it's more than "a small glitch"
>>
>> > I think it would be a good idea to document the "extendedchars=false"
>> > workaround also for that, much more common, case, or make it unnecessary
>> > (cannot this be detected automatically?).
>>
>>The problem is that the dvi file produced with extendedchares=false is
>>wrong.  Instead of 'réseau', it prints 'érseau':
> [...]
>>Any idea how to fix this?
>
> Unfortunately, at this point the only suggestion I have is that
> extended characters from packages that support multibyte characters
> need to go within TeX escapes within the listing.  I believe that
> works. 

I just learned (on de.comp.text.tex where the same issue came up just
yesterday) that there is yet an other workaround:  Use latin1 for the
listings (which then, of course, need to be in separate files).

\documentclass[a4paper, 12pt]{report}
\usepackage[utf8,latin1]{inputenc}
\inputencoding{utf8}
\usepackage{listings}

\begin{document}
\inputencoding{latin1}
\lstinputlisting{latin1file.java}
\inputencoding{utf8}
\end{document}

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



Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Acknowledgement sent to Frank Küster <frank@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. Full text and rfc822 format available.

Acknowledgement sent to Benoît Dejean <benoit@placenet.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. Full text and rfc822 format available.

Message #228 received at 413045@bugs.debian.org (full text, mbox):

From: Benoît Dejean <benoit@placenet.org>
To: Frank Küster <frank@debian.org>
Cc: Brooks Moses <bmoses@stanford.edu>, 413045@bugs.debian.org, Brooks Moses <bmoses@dpdx.net>
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Mon, 15 Sep 2008 00:15:35 +0200
[Message part 1 (text/plain, inline)]
Le mercredi 07 mars 2007 à 08:12 +0100, Frank Küster a écrit :
> Brooks Moses <bmoses@stanford.edu> wrote:

> \inputencoding{latin1}
> \lstinputlisting{latin1file.java}
> \inputencoding{utf8}
> \end{document}

Hello,
This workaround has worked fine so far whenever i've been able to
convert input text to latin1. But now i'm stuck with non-translatable
chars. Regression is still there.

-- 
Benoît Dejean
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. (Sat, 13 Mar 2010 21:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Julian Bangert <jbangert@acm.org>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. (Sat, 13 Mar 2010 21:45:03 GMT) Full text and rfc822 format available.

Message #233 received at 413045@bugs.debian.org (full text, mbox):

From: Julian Bangert <jbangert@acm.org>
To: 413045@bugs.debian.org
Subject: Patch for Umlauts ( at least ). method for creating more
Date: Sat, 13 Mar 2010 22:17:06 +0100
The following patch removes this problem when encountering umlauts 
--- /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}



Untested:
The following is suggested in a forum for spanish characters
( http://stackoverflow.com/questions/1116266/listings-in-latex-with-utf-8-or-at-least-german-umlauts ):
\lst@ProcessOther {"E1}{\'a}
    \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}{Ñ}


I claim no copyright in these changes / patches. Feel free to do whatever you want with them.

Yours, Julian Bangert






Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. (Sat, 19 Mar 2011 14:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hilmar Preusse <hille42@web.de>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. (Sat, 19 Mar 2011 14:45:03 GMT) Full text and rfc822 format available.

Message #238 received at 413045@bugs.debian.org (full text, mbox):

From: Hilmar Preusse <hille42@web.de>
To: Brooks Moses <bmoses@stanford.edu>, 413045@bugs.debian.org
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Sat, 19 Mar 2011 15:42:17 +0100
On 06.03.07 Brooks Moses (bmoses@stanford.edu) wrote:
> At 04:38 AM 3/6/2007, Frank Küster wrote:

Hi Brooks,

This is about: http://bugs.debian.org/413045

> >> I think it would be a good idea to document the
> >> "extendedchars=false" workaround also for that, much more
> >> common, case, or make it unnecessary (cannot this be detected
> >> automatically?).
> >
> >The problem is that the dvi file produced with extendedchares=false is
> >wrong.  Instead of 'réseau', it prints 'érseau':
> [...]
> >Any idea how to fix this?
> 
We got an implementation suggestion from Julian Bangert. Please be so
kind to evaluate it:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413045#233

Thanks,
  Hilmar

> Unfortunately, at this point the only suggestion I have is that
> extended characters from packages that support multibyte characters
> need to go within TeX escapes within the listing.  I believe that
> works.  (To do that within the C++ example you included, just
> include "texcl" to the lstset options list.  It's a bit more
> complicated in the sh example, and there may not be a completely
> satisfactory solution there.)
> 
> I had thought that extendedchars=false was sufficient, because the
> problem was originally reported with Chinese characters, where the
> misordering (and incorrect font, in some cases) is not visible,
> since they're not mixed with non-extended characters.  It seems that
> I was wrong.
> 
> Unfortunately, making listings compatible with multibyte characters
> is going to be a long-term project.  It is, however, the top
> long-term project on my priority queue, which means that there is
> some possibility that it will happen by the 1.5 release.
> 
> Sorry I don't have better news.
> 

-- 
sigmentation fault




Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. (Sat, 19 Mar 2011 14:48:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hilmar Preusse <hille42@web.de>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. (Sat, 19 Mar 2011 14:48:06 GMT) Full text and rfc822 format available.

Message #243 received at 413045@bugs.debian.org (full text, mbox):

From: Hilmar Preusse <hille42@web.de>
To: Brooks Moses <bmoses@dpdx.net>, 413045@bugs.debian.org
Subject: Re: Bug#413045: texlive-latex-recommended: UTF8 listings error
Date: Sat, 19 Mar 2011 15:44:18 +0100
On 06.03.07 Brooks Moses (bmoses@stanford.edu) wrote:
> At 04:38 AM 3/6/2007, Frank Küster wrote:

Hi Brooks,

This is about: http://bugs.debian.org/413045

Second try different address.

> >> I think it would be a good idea to document the
> >> "extendedchars=false" workaround also for that, much more
> >> common, case, or make it unnecessary (cannot this be detected
> >> automatically?).
> >
> >The problem is that the dvi file produced with extendedchares=false is
> >wrong.  Instead of 'réseau', it prints 'érseau':
> [...]
> >Any idea how to fix this?
> 
We got an implementation suggestion from Julian Bangert. Please be so
kind to evaluate it:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413045#233

Thanks,
  Hilmar

> Unfortunately, at this point the only suggestion I have is that
> extended characters from packages that support multibyte characters
> need to go within TeX escapes within the listing.  I believe that
> works.  (To do that within the C++ example you included, just
> include "texcl" to the lstset options list.  It's a bit more
> complicated in the sh example, and there may not be a completely
> satisfactory solution there.)
> 
> I had thought that extendedchars=false was sufficient, because the
> problem was originally reported with Chinese characters, where the
> misordering (and incorrect font, in some cases) is not visible,
> since they're not mixed with non-extended characters.  It seems that
> I was wrong.
> 
> Unfortunately, making listings compatible with multibyte characters
> is going to be a long-term project.  It is, however, the top
> long-term project on my priority queue, which means that there is
> some possibility that it will happen by the 1.5 release.
> 
> Sorry I don't have better news.
> 

-- 
sigmentation fault




Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#413045; Package texlive-latex-recommended. (Sat, 19 Mar 2011 14:48:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hilmar Preusse <hille42@web.de>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. (Sat, 19 Mar 2011 14:48:08 GMT) Full text and rfc822 format available.

Message #248 received at 413045@bugs.debian.org (full text, mbox):

From: Hilmar Preusse <hille42@web.de>
To: Julian Bangert <jbangert@acm.org>, 413045@bugs.debian.org
Subject: Re: Bug#413045: Patch for Umlauts ( at least ). method for creating more
Date: Sat, 19 Mar 2011 15:44:46 +0100
On 13.03.10 Julian Bangert (jbangert@acm.org) wrote:

Hi,

> The following patch removes this problem when encountering umlauts
> 
I forwarded your suggestion to Brooks.

H.
-- 
sigmentation fault




Reply sent to Norbert Preining <preining@logic.at>:
You have taken responsibility. (Tue, 10 Sep 2013 06:57:19 GMT) Full text and rfc822 format available.

Notification sent to Benoît Dejean <benoit@placenet.org>:
Bug acknowledged by developer. (Tue, 10 Sep 2013 06:57:19 GMT) Full text and rfc822 format available.

Message #253 received at 413045-done@bugs.debian.org (full text, mbox):

From: Norbert Preining <preining@logic.at>
To: 396322-done@bugs.debian.org, 290930-done@bugs.debian.org, 259390-done@bugs.debian.org, 220870-done@bugs.debian.org, 207810-done@bugs.debian.org, 413045-done@bugs.debian.org, 434056-done@bugs.debian.org, 373605-done@bugs.debian.org, 367261-done@bugs.debian.org, 335537-done@bugs.debian.org, 306586-done@bugs.debian.org, 232850-done@bugs.debian.org, 227301-done@bugs.debian.org, 95980-done@bugs.debian.org, 63797-done@bugs.debian.org, 259200-done@bugs.debian.org, 204357-done@bugs.debian.org, 626521-done@bugs.debian.org, 548526-done@bugs.debian.org, 512254-done@bugs.debian.org, 509037-done@bugs.debian.org, 470208-done@bugs.debian.org, 434706-done@bugs.debian.org, 406534-done@bugs.debian.org, 388592-done@bugs.debian.org, 351825-done@bugs.debian.org, 577742-done@bugs.debian.org, 499422-done@bugs.debian.org, 421574-done@bugs.debian.org, 286686-done@bugs.debian.org, 635525-done@bugs.debian.org, 493215-done@bugs.debian.org, 475746-done@bugs.debian.org, 577787-done@bugs.debian.org, 576685-done@bugs.debian.org, 569576-done@bugs.debian.org, 559887-done@bugs.debian.org, 551229-done@bugs.debian.org, 548825-done@bugs.debian.org, 466403-done@bugs.debian.org, 459438-done@bugs.debian.org, 435543-done@bugs.debian.org, 289848-done@bugs.debian.org, 469450-done@bugs.debian.org
Cc: debian-tex-maint@lists.debian.org
Subject: Closing old and upstream bugs
Date: Tue, 10 Sep 2013 11:09:38 +0900
Dear bug submitter,

the bug you have submitted against one of the TeX packages concerns
not the Debian packaging of TeX Live, nor the upstream TeX Live 
distribution itself, but Up-upstream, the original author of
the respective package.

TeX Live only collects what authors provide.

Thus, neither we, the Debian TeX Team, nor the Upstream TeX Live team
can fix anything regarding this bug.

Furthermore, the bug you have reported is rather old.

We suggest you to do the following:
* verify that the bug is still present with current TeX Live (2013)
  installation on Debian
* if yes, please report the bug to the *original* author of the TeX
  package, and *not* to upstream TeX Live nor Debian

Other ways to deal with these bugs are requesting help from TeX experts,
your local TeX consultant, or local TeX User Groups. One good place to
ask questions is the newsgroup comp.text.tex, or the StackExchange
website http://tex.stackexchange.com


Thanks a lot for your understanding

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 08 Oct 2013 07:31:00 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 04:11:17 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.