[merge] Handle bad LANG
John Arbash Meinel
john at arbash-meinel.com
Thu Aug 24 22:47:15 BST 2006
Right now if you set LANG to something unrecognized by python, you get
an ugly traceback.
The attached patch changes bzrlib so it falls back to just using 'ascii'
after emitting a semi-helpful warning.
I'm not 100% on the english of the warning, but I think it is reasonable.
This is probably small enough for 0.10, but I'll let Robert decide.
My only concern is that the test might be a little too brittle, because
it expects a specific formatting for the locale.Error.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: locale-35392.patch
Type: text/x-patch
Size: 6439 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060824/84af4108/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060824/84af4108/attachment.pgp
More information about the bazaar
mailing list