FS#26350 - [python-pygments]
Attached to Project:
Community Packages
Opened by Vladimir (_v_l) - Sunday, 09 October 2011, 06:10 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 10 October 2011, 01:51 GMT
Opened by Vladimir (_v_l) - Sunday, 09 October 2011, 06:10 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 10 October 2011, 01:51 GMT
|
Details
Description:
pygmentize fails on any occasion of '-O encoding=UTF-8' Additional info: python-pygments-1.4-4 python2-pygments-1.4-4 Steps to reproduce: Install latest python-pygments (it provides 'pygmentize', python2-pygments package don't) and try run in terminal $ pygmentize -а html -l latex -O encoding=UTF-8 latex.ltx or $ pygmentize -а html -l sql -O encoding=UTF-8 sqlite.sql or $ pygmentize -а html -l bash -O encoding=UTF-8 bash.sh on attached files, the output *** Error while highlighting: TypeError: must be str, not bytes (file "/usr/lib/python3.2/codecs.py", line 356, in write) In order to process the files without error one have to avoid to build python3 version of the file, i.e. don't apply patch 'utf8-terminal-output.patch'. I tried python2 only package that was build locally and it works. May I suggest not to build python3 version of the pygments until the issue (two bugs on they tracker on bitbucket) will be fixed? |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Monday, 10 October 2011, 01:51 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 1.4-5.
Monday, 10 October 2011, 01:51 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 1.4-5.
Comment by
Evangelos Foutras (foutrelis) -
Monday, 10 October 2011, 01:51 GMT
Thanks for the report. pygmentize is now provided by the
python2-pygments package.