reassign 415968 python
found 415968 2.5.4-2
thanks

This bug continues to occur in Python 2.5.4.

=====
$ python -V
Python 2.5.4

$ cat <<_EOT_ >./frob.py
print u'\u03BB'
_EOT_

$ python ./frob.py 
λ

$ python ./frob.py > foo
Traceback (most recent call last):
  File "./frob.py", line 1, in <module>
    print u'\u03BB'
UnicodeEncodeError: 'ascii' codec can't encode character u'\u03bb' in position 
0: ordinal not in range(128)
=====

Since the shell, the filesystem, and the terminal all understand
UTF-8, the redirection to a file should succeed, resulting in the
UTF-8 encoded character appearing on a line, just as with the output
to the terminal.

-- 
 \     “As I bit into the nectarine, it had a crisp juiciness about it |
  `\          that was very pleasurable - until I realized it wasn't a |
_o__)               nectarine at all, but A HUMAN HEAD!!” —Jack Handey |
Ben Finney <[email protected]>

Attachment: signature.asc
Description: Digital signature

Reply via email to