user_encoding fix
John A Meinel
john at arbash-meinel.com
Fri Feb 17 02:52:39 GMT 2006
Nir Soffer wrote:
> I branched John A. Meinel encoding branch, and started with a small fix
> for user_encoding, described in
> http://bazaar.canonical.com/DarwinCommandLineArgumentDecoding.
>
> See revisions 1575..1577 from http://nirs.dyndns.org/bzr/encoding-nirs
>
> There are 3 new tests, 2 are trivial tests that check the correct value,
> the third is a test that try to validate the value of user_encoding by
> using shell completion and trying to decode the completed names, which
> is relevant to all posix like platforms.
>
> Please comment and try the tests on your platform. I use here Mac OS X
> 10.3, and have also a W2K machine but try to avoid it.
>
>
> Best Regards,
>
> Nir Soffer
I thought on Mac we used the workaround:
if sys.platform == 'darwin':
sys.platform = 'posix'
import locale
sys.platform = 'darwin'
else:
import locale
Which (in theory) gets bzrlib.user_encoding set to 'utf-8'. Which it
seems to do for me. (But then again I have LANG=en_US.UTF-8 set in my
.bashrc).
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060216/9d317c6c/attachment.pgp
More information about the bazaar
mailing list