Package: python2.3
Version: 2.3.5-14
Severity: normal

The 'curses' module seems not to support UTF-8 charset. I believe that linking with 'libncursesw' (rather than with 'libncurses') would solve the problem.

$ locale charmap
UTF-8
$ cat buggy import locale
encoding = locale.getpreferredencoding()

import curses
from curses.wrapper import wrapper as curses_wrapper

def main(window):
        from time import sleep
        import unicodedata
        ch = unichr(0x141)
        window.addstr(unicodedata.name(ch) + ' = ' + ch.encode(encoding))
        window.refresh()
        sleep(5)

curses_wrapper(main)

$ python2.3 buggy LATIN CAPITAL LETTER L WITH STROKE = Å~A

-- System Information:
Debian Release: testing/unstable
 APT prefers testing
 APT policy: (900, 'testing'), (600, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-1-686
Locale: LANG=C, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)

Versions of packages python2.3 depends on:
ii  libbz2-1.0                    1.0.3-3    high-quality block-sorting file co
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libdb4.3                      4.3.29-4.1 Berkeley v4.3 Database Libraries [
ii  libncurses5                   5.5-2      Shared libraries for terminal hand
ii  libreadline5                  5.1-7      GNU readline and history libraries
ii  libssl0.9.8                   0.9.8b-2   SSL shared libraries
ii  python-central                0.5.1      register and build utility for Pyt
ii  zlib1g                        1:1.2.3-11 compression library - runtime

Versions of packages python2.3 recommends:
pn  python2.3-cjkcodecs | python2 <none>     (no description available)
pn  python2.3-cjkcodecs | python2 <none>     (no description available)

-- no debconf information

--
Jakub Wilk

Reply via email to