summary: python3.0 common_configure_args in debian/rules should have "--with-wide-unicode"

Bug #361455 reported by bellbind
2
Affects Status Importance Assigned to Milestone
python3-defaults (Ubuntu)
Fix Released
Medium
Unassigned
python3.0 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: python3.0

At jaunty python3.0 package, common_configure_args in debian/rules should have "--with-wide-unicode" as:

common_configure_args = \
                --prefix=/usr \
                --enable-ipv6 \
                --with-system-ffi \
                --with-wide-unicode \

The python2.6 (or python2.5) package is configured with "--enable-unicode=ucs4".
It makes programs handle any UCS4 unicode character as a single character.
for example:

#!/usr/bin/python2.6
print(len(u'\U0002000B')) # => 1: it is a surrogate-pair character if encoded to UTF-16

But current python3.0_3.0.1-0ubuntu12 package is no "--with-wide-unicode". So the character cannot be handled as a single:

#!/usr/bin/python3.0
print(len('\U0002000B')) # => 2

bellbind (bellbind)
description: updated
summary: summary: python3.0 common_configure_args in debian/rules should have "--
- with-wide-ucs"
+ with-wide-unicode"
description: updated
bellbind (bellbind)
description: updated
Revision history for this message
Matthias Klose (doko) wrote :

yes, will be addressed for python3.1. I won't fix this for python3.0, because it's the same default as in intrepid, and we will drop python3.0 soon after python3.1 is available in karmic.

Changed in python3-defaults (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Changed in python3.0 (Ubuntu):
status: New → Won't Fix
Revision history for this message
bellbind (bellbind) wrote :

Thank you for replying. I accept the decision.

Revision history for this message
Matthias Klose (doko) wrote :

fixed in karmic and lucid

Changed in python3-defaults (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.