sys.stdout always has an encoding attribute

Bug #1149813 reported by Tobias Schlauch
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Python WebDAV Library
New
Undecided
Tobias Schlauch

Bug Description

For details see the prosed merge request.

Related branches

description: updated
Revision history for this message
OpenRAVE Development (openrave) wrote :

i think it is bad to rely on sys.stdout, some programs do not have it set (like a python module running in wsgi with apache2 server). it's safer to use:

return result.encode(sys.getfilesystemencoding() or "ascii", "replace")

Revision history for this message
Graham Lenton (maharg101) wrote :

Also affects processes running under supervisord :o\

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.