[issue20137] Logging: RotatingFileHandler computes string length instead of byte representation length.

A. Libotean report at bugs.python.org
Wed Feb 5 22:29:19 CET 2014


A. Libotean added the comment:

> Which encoding are you using, such that the difference in length between encoded and decoded messages is significant?

I agree right off the bat that the error in size is not significant. Only the length of the last appended line is computed erroneously.

I'm uploading the patch in case you decide to apply it.

Thanks.

----------

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


More information about the Python-bugs-list mailing list