Your message dated Sat, 29 Jul 2006 19:56:34 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#367043: python2.4: print of wide chars to non-tty output 
fails to 
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: python2.4
Version: 2.4.3-3
Severity: normal


The following symple test demostrates the problem:

$ python -c 'print u"\u4e9c"'
亜
[EMAIL PROTECTED] ~/src/kanji]
$ python -c 'print u"\u4e9c"' | grep .
Traceback (most recent call last):
  File "<string>", line 1, in ?
UnicodeEncodeError: 'ascii' codec can't encode character u'\u4e9c' in 
position 0: ordinal not in range(128)

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

Versions of packages python2.4 depends on:
ii  libbz2-1.0                    1.0.3-2    high-quality block-sorting file co
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries
ii  libdb4.4                      4.4.20-3   Berkeley v4.4 Database Libraries [
ii  libncurses5                   5.5-1      Shared libraries for terminal hand
ii  libncursesw5                  5.5-1      Shared libraries for terminal hand
ii  libreadline5                  5.1-6      GNU readline and history libraries
ii  libssl0.9.8                   0.9.8a-7   SSL shared libraries
ii  mime-support                  3.35-1     MIME files 'mime.types' & 'mailcap
ii  python2.4-minimal             2.4.3-3    A minimal subset of the Python lan

python2.4 recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
> The following symple test demostrates the problem:
> 
> $ python -c 'print u"\u4e9c"'
> =E4=BA=9C
> [EMAIL PROTECTED] ~/src/kanji]
> $ python -c 'print u"\u4e9c"' | grep .
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u4e9c' in=20
> position 0: ordinal not in range(128)

not a bug. you have to make sure that your locale supports the
encoding:

$ LANG=C python -c 'print u"\u4e9c"'
Traceback (most recent call last):
  File "<string>", line 1, in ?
UnicodeEncodeError: 'ascii' codec can't encode character u'\u4e9c' in position 
0: ordinal not in range(128)

$ LANG=de_DE.UTF-8 python -c 'print u"\u4e9c"'
[correct character]

note that the locale has to be generated on your system as well.

--- End Message ---

Reply via email to