> The default replacement should be really providing a new execfile that > gets the encoding in the first 2 lines and opens it with the proper > encoding set (and properly closes the stream).
No. The default replacement should really open the file in binary mode. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list