Package: python-pygments
Version: 2.0~rc1.a2bc2bd+dfsg-1
Severity: normal

Dear Maintainer,

When pygmentize is asked to write its output to a file, and the output contains
UTF-8 characters, the program crashes.

To reproduce:

  echo é > foo.html
  pygmentize -o out.tex foo.html

Resulting in the following error:

*** Error while highlighting:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 0: 
ordinal not in range(128)
   (file "/usr/lib/python2.7/dist-packages/pygments/formatters/latex.py", line 
411, in format_unencoded)

Note that I couldn't reproduce this problem when testing against revision 3562
of the upstream repository. Also, pygmentize from Debian is essentially
unchanged from this repository (except for the shebang), so I think the problem
is not in the pygmentize program itself but in the pygments library packaged.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pygments depends on:
ii  python      2.7.8-2
pn  python:any  <none>

Versions of packages python-pygments recommends:
ii  python-chardet        2.3.0-1
ii  python-pkg-resources  5.5.1-1

Versions of packages python-pygments suggests:
pn  ttf-bitstream-vera  <none>

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to