bug: files with non-ascii chars?
Ramon Diaz-Uriarte
rdiaz02 at gmail.com
Fri Dec 29 16:31:05 GMT 2006
Dear All,
This isn't really serious, but it might seem worrisome. In a directory
where I accidentally named a file
f3.pngç (the weird char is the "ç").
I get bzr to crash (problems disappear when I delete that file). I
think it'd be better to say explicitly that a file has a weird name.
$ bzr status
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode
byte 0xe7 in position 6: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line
626, in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line
588, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line
292, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line
598, in ignore_pipe
result = func(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 177, in run
to_file=self.outf)
File "/usr/lib/python2.4/site-packages/bzrlib/status.py", line 137,
in show_tree_status
specific_files=specific_files)
File "/usr/lib/python2.4/site-packages/bzrlib/tree.py", line 86, in
changes_from
include_root=include_root
File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line
38, in read_locked
return unbound(self, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/bzrlib/tree.py", line 428, in compare
specific_file_ids, include_root)
File "/usr/lib/python2.4/site-packages/bzrlib/delta.py", line 186,
in _compare_trees
new_path, new_class, new_kind, new_file_id, new_entry = get_next(new_files)
File "/usr/lib/python2.4/site-packages/bzrlib/delta.py", line 182, in get_next
return iter.next()
File "/usr/lib/python2.4/site-packages/bzrlib/workingtree.py", line
875, in list_files
children.sort()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position
6: ordinal not in range(128)
bzr 0.13.0 on python 2.4.4.candidate.0 (linux2)
arguments: ['/usr/bin/bzr', 'status']
Best,
R.
--
Ramon Diaz-Uriarte
Statistical Computing Team
Structural Biology and Biocomputing Programme
Spanish National Cancer Centre (CNIO)
http://ligarto.org/rdiaz
More information about the bazaar
mailing list