Comment 2 for bug 488519

Parth Malwankar (parthm) wrote :

Steps to reproduce:

[tmp]% mkdir unierror
[tmp]% cd unierror
[unierror]% touch `printf "\x83"`
[unierror]% bzr init
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 0: ordinal not in range(128)

Traceback (most recent call last):
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 1109, in run_bzr
    ret = run(*run_argv)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/builtins.py", line 1741, in run
    possible_transports=[to_transport])
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/bzrdir.py", line 578, in create_branch_convenience
    bzrdir.create_workingtree()
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/bzrdir.py", line 1736, in create_workingtree
    accelerator_tree=accelerator_tree, hardlink=hardlink)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/workingtree_4.py", line 1474, in initialize
    delta_from_tree=delta_from_tree)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/transform.py", line 2279, in build_tree
    delta_from_tree)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/transform.py", line 2295, in _build_tree
    for dir, files in wt.walkdirs():
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/workingtree.py", line 2417, in walkdirs
    current_disk = disk_iterator.next()
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/osutils.py", line 1647, in walkdirs
    names = sorted(_listdir(top))
UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 0: ordinal not in range(128)

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2010-06-03T04:18.crash
if a bug-reporting window does not automatically appear.
[unierror]%