setdefaultencoding is disabled in site.py for a reason (and is removed in 
python3):
http://faassen.n--tree.net/blog/view/weblog/2005/08/02/0
http://tarekziade.wordpress.com/2008/01/08/syssetdefaultencoding-is-evil/

its better to properly fix your application, e.g. this fails:
python -c 'print u"\u03A9"' | cat
...
UnicodeEncodeError: 'ascii' codec can't encode character u'\u03a9'

this works:
python -c 'print u"\u03A9".encode("UTF-8")' | cat
Ω

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/827090

Title:
  apport-cli crashed with UnicodeEncodeError in communicate(): 'ascii'
  codec can't encode characters in position 40-42: ordinal not in
  range(128)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/827090/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to