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 belopolsky, brett.cannon, eli.bendersky, terry.reedy, vstinner
Date 2010-11-08.01:47:12
SpamBayes Score 0.0025366603
Marked as misclassified No
Message-id <1289180836.84.0.156023568366.issue10342@psf.upfronthosting.co.za>
In-reply-to
Content
+            try:
+                with open(filename, 'rb') as fp:
+                    encoding, _ = tokenize.detect_encoding(fp.readline)
+            except IOError:
+                encoding = None

You should use 'utf-8' instead of None (which will fall back to the locale encoding) here.
History
Date User Action Args
2010-11-08 01:47:17vstinnersetrecipients: + vstinner, brett.cannon, terry.reedy, belopolsky, eli.bendersky
2010-11-08 01:47:16vstinnersetmessageid: <1289180836.84.0.156023568366.issue10342@psf.upfronthosting.co.za>
2010-11-08 01:47:13vstinnerlinkissue10342 messages
2010-11-08 01:47:12vstinnercreate