[Bug 352493] [NEW] ipython does not handle Unicode input correctly

Marius Gedminas marius at pov.lt
Tue Mar 31 16:04:03 UTC 2009


Public bug reported:

Binary package hint: ipython

Try this:

0. Make sure your locale encoding is specified correctly, i.e. 'locale charmap' in shell prints UTF-8.
1. Start ipython
2. Type an expression 'len(u"č")' where č is the Unicode character U+010D LATIN SMALL LETTER C WITH CARON

You should get back the answer 1.  What you actually get is 2.

If you try the experiment with 'python' instead of 'ipython', you'll get
the correct answer.

This trips up people who use IPython and think they're dealing with
Unicode strings that they see on screen, when IPython silently
misinterprets them as ISO-8859-1 instead of using the locale encoding.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: ipython 0.8.4-1
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/username/bin:/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=lt_LT.UTF-8
 LC_CTYPE=lt_LT.UTF-8
SourcePackage: ipython
Uname: Linux 2.6.27-14-server i686

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


** Tags: apport-bug

-- 
ipython does not handle Unicode input correctly
https://bugs.launchpad.net/bugs/352493
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


More information about the universe-bugs mailing list