every command twice encode sys.stdout?
Bug #199442 reported by
Alexander Belchenko
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
Looking at .bzr.log I noticed that message about encoding stdout to some encoding appears twice. Here is quintessence for `bzr --no-plugins version`:
0.971 encoding stdout as sys.stdout encoding 'cp866'
0.992 bzr arguments: [u'--no-plugins', u'version']
1.282 encoding stdout as sys.stdout encoding 'cp866'
1.422 return code 0
Changed in bzr: | |
status: | Triaged → Confirmed |
tags: | added: check-for-breezy |
To post a comment you must log in.
Hi Alexander !
You're right, the first one is due to trace.enable_ default_ logging( ) and the second one to commands. _setup_ outf().
The most disturbing thing IMHO is that get_terminal_ encoding( ) has a side-effect which actually modifies the terminal encoding even if the function is prefixed with 'get_'.