[Python-modules-team] Bug#503300: ipython differs from python in handling of utf-8

Noah Slater nslater at bytesexual.org
Fri Oct 24 13:56:02 UTC 2008


Package: ipython
Version: 0.8.4-1
Severity: normal

The `python` command handles UTF-8 correctly:

  >>> print u"ſwhack"
  ſwhack

The `ipython` command does not seem to:

  In [1]: print u"ſwhack"
  Å¿whack

I am guessing that `ipython` is defaulting to latin1 or some other encoding,
but I cannot find a configuration option for this. I think that it should
default to UTF-8, if that is in fact what `python` is doing.

Note that both of them were run from the same shell.

  nslater at bytesexual: ~ $ locale
  LANG=en_GB.UTF-8
  LC_CTYPE="en_GB.UTF-8"
  LC_NUMERIC="en_GB.UTF-8"
  LC_TIME="en_GB.UTF-8"
  LC_COLLATE="en_GB.UTF-8"
  LC_MONETARY="en_GB.UTF-8"
  LC_MESSAGES="en_GB.UTF-8"
  LC_PAPER="en_GB.UTF-8"
  LC_NAME="en_GB.UTF-8"
  LC_ADDRESS="en_GB.UTF-8"
  LC_TELEPHONE="en_GB.UTF-8"
  LC_MEASUREMENT="en_GB.UTF-8"
  LC_IDENTIFICATION="en_GB.UTF-8"
  LC_ALL=

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.20.3-bytemark-uml-2
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ipython depends on:
ii  python                        2.5.2-2    An interactive high-level object-o
ii  python-pexpect                2.3-1      Python module for automating inter
ii  python-support                0.8.6      automated rebuilding support for P

ipython recommends no packages.

Versions of packages ipython suggests:
pn  python-matplotlib             <none>     (no description available)
pn  python-numpy                  <none>     (no description available)
pn  python-profiler               <none>     (no description available)

-- no debconf information

-- 
Noah Slater, http://bytesexual.org/nslater





More information about the Python-modules-team mailing list