Comment 2 for bug 59968

Revision history for this message
Fábio (machado2) wrote :

Now bzr.dev throws an exception when I add a file with an invalid filename, at mutabletree.py.
I didnt understand why its doing it, as the same line of code "for subf in sorted(os.listdir(abspath)):" worked for me in python command line.

bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 0: ordinal not in range(128)

Traceback (most recent call last):
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/commands.py", line 729, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/commands.py", line 691, in run_bzr
    ret = run(*run_argv)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/commands.py", line 389, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/builtins.py", line 383, in run
    no_recurse, action=action, save=not dry_run)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/mutabletree.py", line 50, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/home/fabio/repo/bazaar/bzr.dev/bzrlib/mutabletree.py", line 420, in smart_add
    for subf in sorted(os.listdir(abspath)):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 0: ordinal not in range(128)

bzr 0.19.0dev0 on python 2.5.1.final.0 (linux2)
arguments: ['/home/fabio/bin/bzrdev', 'add']

** please send this report to <email address hidden>