First bazaar-ng experience
John A Meinel
john at arbash-meinel.com
Wed Jun 29 17:08:55 BST 2005
Uros Trebec wrote:
>Martin Pool <mbp <at> sourcefrog.net> writes:
>
>
>
>>On Wed, 2005-04-20 at 16:59 +0200, Michal Čihař wrote:
>>
>>
>>
>>>My name is stored in utf-8, that seems to cause this problem.
>>>
>>>
>>Yes, that's a problem in 0.0.3. It's fixed in the current development
>>tree and will be in 0.0.4.
>>
>>
>>
>
>It seams that problem persists in 0.0.4 and 0.0.5. I get this:
>
>bzr: decode() argument 1 must be string, not None
> at /Users/uros/Downloads/linux/bzr-0.0.5/bzrlib/commands.py:1471 in run_bzr()
> see ~/.bzr.log for debug information
>
>and
>
>running tests from /Users/uros/Downloads/linux/bzr-0.0.5/testbzr
>against bzr /Users/uros/Downloads/linux/bzr-0.0.5/bzr
>in directory /Users/uros/Downloads/linux/bzr-0.0.5
>with python python
>
>**************************************************
>testbzr: tests failed
>see testbzr.log for more information
>**************************************************
>$ ['python', '/Users/uros/Downloads/linux/bzr-0.0.5/bzr', 'version']
> at ./testbzr:220
>bzr: decode() argument 1 must be string, not None
> at /Users/uros/Downloads/linux/bzr-0.0.5/bzrlib/commands.py:1471 in run_bzr()
> see ~/.bzr.log for debug information
>tests failed!
>Traceback (most recent call last):
> File "./testbzr", line 220, in ?
> print backtick('bzr version')
> File "./testbzr", line 113, in backtick
> raise CommandFailed("test failed: %r returned %d, expected %d"
>CommandFailed: test failed:
>['python', '/Users/uros/Downloads/linux/bzr-0.0.5/bzr', 'version']
>returned 2, expected 0
>
>I'm running MacOS X 10.3.9 and python 2.4.1.
>
>Is there a way to get around this?
>
>Regards,
>Uros
>
>
Can you try running just "bzr version" and if that fails, give us a
snippet from the last portion of ~/.bzr.log?
The specific problem seems to be that the python code:
import locale
user_encoding = locale.getpreferredencoding()
Is returning None for your preferred encoding. Do you know what your
actual encoding is?
What do we thing a default should be if None is returned? latin-1, utf-8?
Does anyone know how to set the preferred encoding? I know you can try
setting LC_ALL or LANG, something like
LC_ALL='en.utf8' bzr version
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050629/2162ce1a/attachment.pgp
More information about the bazaar
mailing list