Your message dated Thu, 19 Nov 2009 09:47:42 -0600
with message-id <[email protected]>
and subject line Re: Bug#528614: python2.5: Fails badly at handling Unicode
with piped/redirected stdout
has caused the Debian Bug report #528614,
regarding python2.5: Fails badly at handling Unicode with piped/redirected
stdout
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.)
--
528614: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528614
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python2.5
Version: 2.5.4-1
Severity: important
Hi.
Either I'm on crack, or python is. Transcript:
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| $ ./python-wtf.py
| KïBï
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| $ ./python-wtf.py > /dev/null
| Traceback (most recent call last):
| File "./python-wtf.py", line 4, in <module>
| print u'KïBï'
| UnicodeEncodeError: 'ascii' codec can't encode character u'\xef' in position
1: ordinal not in range(128)
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| ret:1$ ./python-wtf.py > fubar
| Traceback (most recent call last):
| File "./python-wtf.py", line 4, in <module>
| print u'KïBï'
| UnicodeEncodeError: 'ascii' codec can't encode character u'\xef' in position
1: ordinal not in range(128)
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| ret:1$ locale
| LANG=fr_FR.UTF-8
| LC_CTYPE="fr_FR.UTF-8"
| LC_NUMERIC="fr_FR.UTF-8"
| LC_TIME="fr_FR.UTF-8"
| LC_COLLATE="fr_FR.UTF-8"
| LC_MONETARY="fr_FR.UTF-8"
| LC_MESSAGES="fr_FR.UTF-8"
| LC_PAPER="fr_FR.UTF-8"
| LC_NAME="fr_FR.UTF-8"
| LC_ADDRESS="fr_FR.UTF-8"
| LC_TELEPHONE="fr_FR.UTF-8"
| LC_MEASUREMENT="fr_FR.UTF-8"
| LC_IDENTIFICATION="fr_FR.UTF-8"
| LC_ALL=
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| $ cat python-wtf.py
| #!/usr/bin/python
| # -*- coding: utf-8 -*-
|
| print u'KïBï'
Same result with “| less”, for example.
The script as also attached for your convenience.
Also happens with python2.4 (2.4.6-2).
Mraw,
KiBi.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python2.5 depends on:
ii libbz2-1.0 1.0.5-1 high-quality block-sorting file co
ii libc6 2.9-12 GNU C Library: Shared libraries
ii libdb4.5 4.5.20-13 Berkeley v4.5 Database Libraries [
ii libncursesw5 5.7+20090502-1 shared libraries for terminal hand
ii libreadline5 5.2-4 GNU readline and history libraries
ii libsqlite3-0 3.6.13-1 SQLite 3 shared library
ii libssl0.9.8 0.9.8g-16 SSL shared libraries
ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap
ii python2.5-minimal 2.5.4-1 A minimal subset of the Python lan
python2.5 recommends no packages.
Versions of packages python2.5 suggests:
pn python-profiler <none> (no description available)
ii python2.5-doc 2.5.4-1 Documentation for the high-level o
-- no debconf information
--- End Message ---
--- Begin Message ---
On 14.05.2009 02:07, Cyril Brulebois wrote:
Package: python2.5
Version: 2.5.4-1
Severity: important
Hi.
Either I'm on crack, or python is. Transcript:
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| $ ./python-wtf.py
| KïBï
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| $ ./python-wtf.py> /dev/null
| Traceback (most recent call last):
| File "./python-wtf.py", line 4, in<module>
| print u'KïBï'
| UnicodeEncodeError: 'ascii' codec can't encode character u'\xef' in position
1: ordinal not in range(128)
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| ret:1$ ./python-wtf.py> fubar
| Traceback (most recent call last):
| File "./python-wtf.py", line 4, in<module>
| print u'KïBï'
| UnicodeEncodeError: 'ascii' codec can't encode character u'\xef' in position
1: ordinal not in range(128)
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| ret:1$ locale
| LANG=fr_FR.UTF-8
| LC_CTYPE="fr_FR.UTF-8"
| LC_NUMERIC="fr_FR.UTF-8"
| LC_TIME="fr_FR.UTF-8"
| LC_COLLATE="fr_FR.UTF-8"
| LC_MONETARY="fr_FR.UTF-8"
| LC_MESSAGES="fr_FR.UTF-8"
| LC_PAPER="fr_FR.UTF-8"
| LC_NAME="fr_FR.UTF-8"
| LC_ADDRESS="fr_FR.UTF-8"
| LC_TELEPHONE="fr_FR.UTF-8"
| LC_MEASUREMENT="fr_FR.UTF-8"
| LC_IDENTIFICATION="fr_FR.UTF-8"
| LC_ALL=
| -(jobs:1)-(cy...@talisker pts/7)-(~)
| $ cat python-wtf.py
| #!/usr/bin/python
| # -*- coding: utf-8 -*-
|
| print u'KïBï'
Same result with “| less”, for example.
The script as also attached for your convenience.
Also happens with python2.4 (2.4.6-2).
this is not a bug, but expected behaviour. you either have to set a default
encoding, or use ann utf-8 codec for the output stream.
--- End Message ---