mutt_ldap.py: Also wrap stderr in a codecs writer
authorW. Trevor King <wking@tremily.us>
Thu, 24 Jan 2013 22:26:40 +0000 (17:26 -0500)
committerW. Trevor King <wking@tremily.us>
Thu, 24 Jan 2013 22:32:22 +0000 (17:32 -0500)
commit4a8efa546541b78660aa67000a871c0dc2eb2c2e
treef09215014175b85e9760e09e93da9d9ac46ce6c0
parent4d84b47127d44e40297cfce48aa00628f9a98760
mutt_ldap.py: Also wrap stderr in a codecs writer

So Unicode log messages handled by StreamHandler will be properly
encoded.  In Python 2.7.3 (and probably other 2.x versions),
StreamHandler.emit() falls back on UTF-8 if stream.encoding is None.
With this change, it will use the configured output encoding instead
of guessing.
mutt_ldap.py