This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pitrou, vstinner
Date 2010-01-08.10:23:39
SpamBayes Score 1.0120207e-06
Marked as misclassified No
Message-id <1262946228.21.0.698183448117.issue7651@psf.upfronthosting.co.za>
In-reply-to
Content
New version of the patch which is shorter, cleaner, fix the last bug (seek) and don't change the default behaviour anymore (checking for BOM is now explicit):
 * BOM checking is now optional (explicit): use open(filename, encoding="BOM"). open(filename, "w", encoding="BOM") raises a ValueError.
 * Create a BOMS dictionary directly in the codecs module
 * Fix TextIOWrapper for seek(0) (add _has_bom attribute)
 * Add an unit test for read() and readlines()
 * Read the encoding property before the first read gives None

I also removed the _get_encoding() method (hack).
History
Date User Action Args
2010-01-08 10:23:49vstinnersetrecipients: + vstinner, pitrou
2010-01-08 10:23:48vstinnersetmessageid: <1262946228.21.0.698183448117.issue7651@psf.upfronthosting.co.za>
2010-01-08 10:23:46vstinnerlinkissue7651 messages
2010-01-08 10:23:45vstinnercreate