[New-bugs-announce] [issue5768] logging don't encode Unicode message correctly.

Naoki INADA report at bugs.python.org
Thu Apr 16 08:46:36 CEST 2009


New submission from Naoki INADA <songofacandy at gmail.com>:

>>> logging.error(u'あ')
ERROR:root:縺・
>>> sys.stderr.encoding
'cp932'

This bug is introduced by following commit.
http://svn.python.org/view/python/branches/release26-
maint/Lib/logging/__init__.py?r1=68830&r2=69448

----------
components: Library (Lib)
files: logging_init.diff
keywords: patch
messages: 86015
nosy: naoki
severity: normal
status: open
title: logging don't encode Unicode message correctly.
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file13697/logging_init.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5768>
_______________________________________


More information about the New-bugs-announce mailing list