Sam Pablo Kuper <[EMAIL PROTECTED]> added the comment:
Using non-ASCII characters in an optparse help string also causes
UnicodeDecodeErrors. Here's the relevant part of the traceback:
File "/home/spk30/opt/ActivePython-2.5/lib/python2.5/optparse.py", line
1655, in print_help
file.write(self.format_help().encode(encoding, "replace"))
NB. Adding an encoding declaration at the beginning of the python
script which used a non-ASCII character in an optparse help string
didn't solve the problem.
----------
nosy: +sampablokuper
versions: +Python 2.5
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2931>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com