After enabling enscript support for syntax highlighting, I get the following error message: Failure during use of an external program: enscript --color --language=html -Ecpp --output - - Python Exception Occurred Traceback (most recent call last): File "/var/www/localhost/viewcvs/lib/viewcvs.py", line 2630, in run_cgi main() File "/var/www/localhost/viewcvs/lib/viewcvs.py", line 2594, in main view_checkout(request) File "/var/www/localhost/viewcvs/lib/viewcvs.py", line 1916, in view_checkout markup_stream(request, fp, revision, request.mime_type) File "/var/www/localhost/viewcvs/lib/viewcvs.py", line 663, in markup_stream markup_stream_enscript(lang, fp) File "/var/www/localhost/viewcvs/lib/viewcvs.py", line 494, in markup_stream_enscript enscript.write(chunk) IOError: [Errno 32] Broken pipe I played around with some command line options of enscript and modified viewcvs.py accordingly, but I still got a similar error message.
Created attachment 79296 [details, diff] Patch to fix broken enscript functionality in viewcvs-0.9.3
Yep, that patch did it for me! Thanks!
I wonder if this package is maintained at all? There's a patch for this bug since months and nobody added it to the Gentoo repository yet.
I'm around, just haven't had a chance to fix this yet.
Fixed in www-apps/viewvc