[Bug 824734] Re: locale.normalize does not accept unicode: TypeError in normalize(): character mapping must return integer, None or unicode

Launchpad Bug Tracker 824734 at bugs.launchpad.net
Tue Aug 16 07:00:11 UTC 2011


This bug was fixed in the package python2.7 - 2.7.2-5

---------------
python2.7 (2.7.2-5) unstable; urgency=low

  * Update to 20110816, taken from the 2.7 branch.
    - Fix issue#12752. LP: #824734.
  * Don't run test_threading on the kfreebsd-i386 buildd.
 -- Matthias Klose <doko at debian.org>   Tue, 16 Aug 2011 08:33:31 +0200

** Changed in: python2.7 (Ubuntu Oneiric)
       Status: In Progress => Fix Released

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

Title:
  locale.normalize does not accept unicode: TypeError in normalize():
  character mapping must return integer, None or unicode

Status in Python:
  Unknown
Status in “python2.7” package in Ubuntu:
  Fix Released
Status in “python2.7” source package in Oneiric:
  Fix Released

Bug description:
  locale.normalize does accept unicode strings anymore in python 2.7.2:

  python2.7 -c "import locale; locale.normalize(u'en_US')"
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python2.7/locale.py", line 358, in normalize
      fullname = localename.translate(_ascii_lower_map)
  TypeError: character mapping must return integer, None or unicode

  This breaks various packages, like updatemanager, playonlinux (bug
  825421) and aptdaemon (bug 825056)

  reported upstream:
  http://bugs.python.org/issue12752

To manage notifications about this bug go to:
https://bugs.launchpad.net/python/+bug/824734/+subscriptions




More information about the foundations-bugs mailing list