Changes between Initial Version and Version 2 of Ticket #2268


Ignore:
Timestamp:
04/02/2015 02:51:47 PM (5 years ago)
Author:
sebastian
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2268 – Description

    initial v2  
    22The `setupStderr()` function is used in our executable scripts and WSGI controllers to make `sys.stderr` expect unicode instead of byte strings. 
    33 
    4 While this - IMO ugly - hack prevents `UnicodeEncodeError`s when writing `unicode` objects with non-ascii text to stderr, it causes `UnicodeDecodeError`s when you write `str` objects with non-ascii data to stderr.  
     4While this - IMO ugly - hack prevents `UnicodeEncodeError`s when writing `unicode` objects with non-ascii text to stderr, it causes `UnicodeDecodeError`s when you write `str` objects with non-ascii data to stderr. 
     5 
     6Moreover, the way it's currently implemented doesn't work for WSGI apps running in a server environment, since there is no `sys.stderr`. Unhandled exceptions are logged to `environ["wsgi.errors"]` instead. 
    57 
    68=== What to change ===