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 shamilbi
Recipients shamilbi
Date 2009-02-06.16:07:44
SpamBayes Score 0.0028510117
Marked as misclassified No
Message-id <1233936467.22.0.152712476213.issue5170@psf.upfronthosting.co.za>
In-reply-to
Content
if i configure logging into a file with encoding = 'cp1251' and do
logger.debug(u'...') then i get crash with UnicodeError

i suggest reimplementing method FileHandler.emit():
...
if isinstance(msg, unicode):
    stream.write(f % msg)    # it works!
...
History
Date User Action Args
2009-02-06 16:07:47shamilbisetrecipients: + shamilbi
2009-02-06 16:07:47shamilbisetmessageid: <1233936467.22.0.152712476213.issue5170@psf.upfronthosting.co.za>
2009-02-06 16:07:46shamilbilinkissue5170 messages
2009-02-06 16:07:45shamilbicreate