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 pwronisz, vinay.sajip, vstinner
Date 2013-10-15.15:11:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381849862.23.0.438593808777.issue19267@psf.upfronthosting.co.za>
In-reply-to
Content
The example works fine on Python3:

localhost$ python3
Python 3.3.2 (default, Aug 23 2013, 19:00:04) 
[GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.root.addHandler(logging.FileHandler(filename='test.log',encoding='UTF16'))
>>> logging.error( u'b\u0142\u0105d')
>>> 

localhost$ hexdump test.log
0000000 feff 0062 0142 0105 0064 000a          
000000c
History
Date User Action Args
2013-10-15 15:11:02vstinnersetrecipients: + vstinner, vinay.sajip, pwronisz
2013-10-15 15:11:02vstinnersetmessageid: <1381849862.23.0.438593808777.issue19267@psf.upfronthosting.co.za>
2013-10-15 15:11:02vstinnerlinkissue19267 messages
2013-10-15 15:11:02vstinnercreate