Your message dated Tue, 02 Jun 2015 12:03:46 +0200
with message-id <[email protected]>
and subject line closing bugs against ancient python2.4
has caused the Debian Bug report #336991,
regarding Please bind wcswidth() and friends.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
336991: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=336991
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python2.4
Version: 2.4.2-1
Severity: wishlist

  The C function wcswidth() is used to determine the number of terminal cells
that a wide-character string will require.  This is essential for programs
that generate terminal output, might operate in Unicode locales and need to
calculate string widths in order to perform text formatting operations.

  The obvious thing to me would be a new method (width(), or perhaps
terminalwidth() if you prefer a more generic name) on strings that returns
the string length for non-unicode strings, and the result of wcswidth() for
Unicode strings.

  So,

>>> s = 'a'
>>> type(s)
<type 'str'>
>>> len(s)
1
>>> s.width()
1
>>> s = 'と'
>>> type(s)
<type 'str'>
>>> len(s)
3
>>> s.width()
3
>>> us = s.decode('utf-8')
>>> us
u'\u3068'
>>> type(us)
<type 'unicode'>
>>> len(us)
1
>>> us.width()
2

  Daniel

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
python2.4 has been obsoleted in Debian long ago. I'm now closing the
remaining bugs against this ancient version, assuming they have been
fixed (or became irrelevant) in newer releases.

Feel free to provide more information and reopen the bugs if they are
still reproducible in the current versions (python2.7, python3.x).


Andreas

--- End Message ---

Reply via email to