pygmentize does not correctly report file names with UTF-8 characters

Issue #1067 resolved
created an issue

On revision 3562, with Python 2.7.8, running the following:

echo foo > é
./pygmentize é

results in the following broken error message:

Error: no lexer for filename '\xc3\xa9' found

Unless I'm doing something wrong, it would probably be neater to fix this?

Comments (3)

  1. Georg Brandl repo owner

    I hesistate to change this, since UnicodeErrors during printing of the exception lurk.

    Unless you're using Python 3, you'll have to live with small nits like this.

  2. Log in to comment