Beginner: problems with the win packages

Marcos Chaves marcos.nospam at gmail.com
Thu Nov 9 04:19:03 GMT 2006


On 11/9/06, John Arbash Meinel <john at arbash-meinel.com> wrote:
> Can you try:
>   python -c "import sys; print sys.stdout.encoding"
>
> Because it sounds like that may be giving 'cp0'.

This gives me "cp0".

>
> Which would mean we want to change 'bzrlib/osutils.py' the function
> 'get_terminal_encoding()'.

If I force this function to 'utf8' or 'cp1252', then it works for me.

Also, I noticed that if I try "chcp", it gives me:

Active code page: 0

...but if I try...

> chcp 1252
Active code page: 1252

...and then run Bazaar, it works, but only for the current session.

>
> I really wish I understood where python is getting this information. But
> in the short term we can try to work around it.

If that helps, locale.getpreferredencoding() gives me "cp1252", and
locale.getdefaultlocale() gives me "('pt_BR', 'cp1252')".

>
> John
> =:->
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFUqd5JdeBCYSNAAMRAgceAJ9ct3uQCEIuMF6KVlnyr/rEpFz92wCeLIYi
> bX5Jlb05xwcyTmqauYXEv1M=
> =IFoX
> -----END PGP SIGNATURE-----
>

-Marcos




More information about the bazaar mailing list