[Bug 824734] Re: locale.normalize does not accept unicode: TypeError in normalize(): character mapping must return integer, None or unicode
Barry Warsaw
824734 at bugs.launchpad.net
Mon Aug 15 21:49:05 UTC 2011
I have submitted a potential patch to the Python tracker. I'd like to
get a little feedback on it before applying it both upstream and in
Ubuntu.
** Changed in: python2.7 (Ubuntu Oneiric)
Assignee: Canonical Foundations Team (canonical-foundations) => Barry Warsaw (barry)
** Changed in: python2.7 (Ubuntu Oneiric)
Milestone: None => ubuntu-11.10-beta-1
** Changed in: python2.7 (Ubuntu Oneiric)
Status: Triaged => In Progress
--
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:
In Progress
Status in “python2.7” source package in Oneiric:
In Progress
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