Problem checking out files with non ascii characters

Aníbal Rojas anibal at rojas.com.ve
Fri Jul 3 15:18:08 BST 2009


Alexander,

    Thanks for you response. The is no .bzr.log (at leats I can¿t find
it) but I suppose you are asking for:

bzr checkout --lightweight file:///foo/bar/repo /foor/bar/target
stdin: is not a tty
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode
character u'\xf3' in position 124: ordinal not in range(128)
Traceback (most recent call last):
  File "/home/gprotec/lib/python/bzrlib/commands.py", line 729, in
exception_to_return_code
return the_callable(*args, **kwargs)
File "/home/gprotec/lib/python/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
File "/home/gprotec/lib/python/bzrlib/commands.py", line 560, in
run_argv_aliases
    return self.run(**all_cmd_args)
File "/home/gprotec/lib/python/bzrlib/builtins.py", line 1234, in run
    accelerator_tree, hardlink)
File "/home/gprotec/lib/python/bzrlib/branch.py", line 1258, in create_checkout
    hardlink=hardlink)
File "/home/gprotec/lib/python/bzrlib/bzrdir.py", line 1599, in
create_workingtree
    accelerator_tree=accelerator_tree, hardlink=hardlink)
  File "/home/gprotec/lib/python/bzrlib/workingtree_4.py", line 1456,
in initialize
    delta_from_tree=delta_from_tree)
File "/home/gprotec/lib/python/bzrlib/transform.py", line 2073, in build_tree
    delta_from_tree)
  File "/home/gprotec/lib/python/bzrlib/transform.py", line 2166, in _build_tree
    accelerator_tree, hardlink)
File "/home/gprotec/lib/python/bzrlib/transform.py", line 2233, in _create_files
    tt.create_file(contents, trans_id)
File "/home/gprotec/lib/python/bzrlib/transform.py", line 1099, in create_file
    f = open(name, 'wb')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in
position 124: ordinal not in range(128)
bzr 1.16.1 on python 2.4.3 (linux2)
arguments: ['/home/gprotec/bin/bzr', 'checkout', '--lightweight',
'file:///home/gprotec/repos/banmujer/',
'/home/gprotec/apps/banmujer-dev/releases/20090703141230']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
  launchpad
/home/gprotec/lib/python/bzrlib/plugins/launchpad [1.16.1]
  netrc_credential_store
/home/gprotec/lib/python/bzrlib/plugins/netrc_credential_store
[1.16.1]
*** Bazaar has encountered an internal error.
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
including this traceback, and a description of what you
were doing when the error occurred.
    command finished

--
Aníbal



On Sat, Jul 4, 2009 at 4:25 AM, Alexander Belchenko<bialix at ukr.net> wrote:
> Aníbal Rojas пишет:
>>
>> Hello,
>>
>>    This error is happening when I run bzr checkout from a bzr built
>> from sources:
>>
>>    bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't
>> encode character u'\xf3' in position 124: ordinal not in range(128)
>>
>>    I suppose Bazaar is able to handle non ascii characters as the
>> files where commited in using a packaged version of Bazaar without
>> problem.
>>
>>    I think the problem is that when this Bazaar binary was built from
>> sources some encoding related library was missing, not sure which one
>> and this is just a guess as I am not a Python programmer.
>>
>>    Any help will be appreciated,
>
> Show relevant part of .bzr.log, please.
>
>
>



More information about the bazaar mailing list