commit fails if the working tree contains an unknown file with undecodable name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
I was testing something in my application and I needed to added a latin-2 encode file name to the working tree, which is according to my locale settings should be utf-8. When committing to bzr, I get this error:
$ bzr ci
Committing to: /home/lukas/
modified picard/tagger.py
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
author=author)
File "/home/
return unbound(self, *args, **kwargs)
File "/home/
result = WorkingTree3.
File "/home/
return unbound(self, *args, **kwargs)
File "/home/
revprops=
File "/home/
message = message_
File "/home/
output_
File "/home/
template = make_commit_
File "/home/
to_
File "/home/
want_
File "/home/
want_
File "/home/
return unbound(self, *args, **kwargs)
File "/home/
want_
File "/home/
want_
File "/home/
(None, utf8_decode(
File "encodings/
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-2: invalid data
Since the file in question is not versioned and 'bzr ci' shouldn't really care about unknown files, I think it would be better to just skip it.
Similar problem happens with 'bzr qci':
Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
window = CommitWindow(tree, selected_list)
File "/home/
return obj(*args, **kwargs)
File "/home/
for entry in tree.unknowns():
File "/home/
return unbound(self, *args, **kwargs)
File "/home/
[subp for subp in self.extras() if not self.is_
File "/home/
subf_norm, can_access = osutils.
File "/home/
normalized = unicodedata.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 0: ordinal not in range(128)
but since QBzr explicitly asks for unknown files, I'm not sure what would be the right way to work around this problem.
tags: | added: check-for-breezy |
status confirmed
importance low
(low because there is an obvious workaround ::)
-Rob www.robertcolli ns.net/ keys.txt>.
--
GPG key available at: <http://