Public bug reported:

Binary package hint: bpython

After "sys.setdefaultencoding('utf-8')" standard output to the terminal
doesn't work. I have tried xterm and gnome-terminal. Example:

>>> print(1)
1
>>> import sys
>>> reload(sys)
>>> sys.setdefaultencoding('utf-8')
>>> print(2)
>>> 

Here "2" is missing. I believe this behavior is a bug.  In standard
'python' you will get:

>>> print(1)
1
>>> import sys
>>> reload(sys)
<module 'sys' (built-in)>
>>> sys.setdefaultencoding('utf-8')
>>> print(2)
2
>>> 

Description:    Ubuntu 10.04.1 LTS
Release:        10.04

bpython:
  Installeret: 0.9.5.2-2ubuntu1
  Kandidat: 0.9.5.2-2ubuntu1
  Versionstabel:
 *** 0.9.5.2-2ubuntu1 0
        500 http://dk.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

** Affects: bpython (Ubuntu)
     Importance: Undecided
         Status: New

-- 
bpython doesn't show output after utf-8 default encoding
https://bugs.launchpad.net/bugs/633027
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to