@Andrew: have you tried running bzr under pydbg the way I outlined?
- Is sys loaded already?
- What does the attempt to call sys.setdefaultencoding('utf-8') give you?
- Does reload(sys) have an effect the way it had in my debug session?
If not, you're seeing a different problem. However, I'll see whether I can reproduce it on 12.04 which is what you seem to be running on.
@Andrew: have you tried running bzr under pydbg the way I outlined?
- Is sys loaded already? ncoding( 'utf-8' ) give you?
- What does the attempt to call sys.setdefaulte
- Does reload(sys) have an effect the way it had in my debug session?
If not, you're seeing a different problem. However, I'll see whether I can reproduce it on 12.04 which is what you seem to be running on.