Chris Lambacher <ch...@kateandchris.net> added the comment:

Senthil: I think that would fundamentally make things worse. The HTML calendar 
apparently always provides a bytes type, but lets assume it provided you with 
unicode and we used sys.stdout.write on the output. Fundamentally you would get 
the same behavior as the patch provides since if you don't provide an encoding 
it uses sys.getdefaultencoding() which, IIUC is fundamentally what happens if 
you sys.stdout.write a unicode string.

Ezio: I think it is highly unlikely that someone would be fiddling around with 
sys.stdout and then calling the main() function on calendar.main() (after 
setting up sys.args so that option parser gets the right parameters).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10087>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to