user_encoding fix

Alexander Belchenko bialix at ukr.net
Sun Feb 19 20:39:56 GMT 2006


Wouter van Heyst пишет:
> On Fri, Feb 17, 2006 at 10:28:44AM +0200, Nir Soffer wrote:
> 
>>I made another small fix, using always bzrlib.user_encoding for outf - 
>>the previous code used sys.stdout.encoding, which is ASCII here (on 
>>10.3).
> 
> 
> Could this give problems with systems where multiple encodings are used,
> like Alexanders?

Exactly. Using always bzrlib.user_encoding instead of 
sys.stdout.encoding if it present will break windows compatibility (as I 
explain earlier, russian windows have sys.stdout.encoding == 'cp866' and 
bzrlib.user_encoding is 'cp1251').

--
Alexander





More information about the bazaar mailing list