[MERGE] Output to stderr with trace module now going through wrapper that takes care about terminal encoding. (#54173)

Alexander Belchenko bialix at ukr.net
Sat Nov 10 17:13:04 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

bzr tends to emit some information messages to stderr via standard logging.StreamHandler.
StreamHandler itself encode all unicode messages with 'utf-8' encoder, if UnicodeEncodeError
encountered. So this patch provide encoded stream instead of bare sys.stderr, that uses
terminal encoding.

This patch lacks the test, because I'm not sure how to test it.
Some hints about testing is needed.

Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHNeagzYr338mxwCURAttLAJ0TTWXsT+d8foH98vQrdueHj8Wi4QCfegKT
5y9oJk8Goj/fwN3+OI8Er+I=
=UTaI
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bzr-mail-gdizml.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20071110/cf739dbc/attachment.diff 


More information about the bazaar mailing list