[issue5170] logging to file + encoding

shamilbi report at bugs.python.org
Tue Apr 21 10:37:58 CEST 2009


shamilbi <shamilbi at gmail.com> added the comment:

>
> Can you retry with setting the "encoding" attribute of the file to
> "cp1251"? That should work and that should be the appropriate method to
> avoid the problem.
>
> test_logging.py in the Python distribution has a test which exercises
> Unicode functionality using cp1251, does that test work in your
> environment?

logging to file is OK (since 2.6.2), logging to console __was__ OK (2.6.1),
not now (2.6.2)

shamil

----------
Added file: http://bugs.python.org/file13726/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5170>
_______________________________________
-------------- next part --------------
<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Can you retry with setting the &quot;encoding&quot; attribute of the file to<br>

&quot;cp1251&quot;? That should work and that should be the appropriate method to<br>
avoid the problem.<br>
<br>
test_logging.py in the Python distribution has a test which exercises<br>
Unicode functionality using cp1251, does that test work in your environment?</blockquote><div> </div><div>logging to file is OK (since 2.6.2), logging to console __was__ OK (2.6.1), not now (2.6.2)<br><br>shamil</div></div>
<br>


More information about the Python-bugs-list mailing list