"bzr add" crashed: UnicodeDecodeError in smart_add with ascii codec
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned | ||
Breezy |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
I started with a directory of code (and data), did "bzr init", then "bzr add" in the top-level directory. The error occured in the "Data" directory, and seems to be because of some strange file names:
---
maltron@
int phasvelK?ph01 results spectrumph03 surface??ph00
integra phasvelo`ph00 results05 summary surface??ph00
integra05 phasvel??ph00 resultsK?ph01 summaryph00 surface??ph00
integraK?ph01 phasvel??ph00 resultso`ph00 summaryph01 timeseries
integrao`ph00 phasvel??ph00 results??ph00 summaryph02 timeseriesph00
integra??ph00 res results??ph00 summaryph03 timeseriesph01
integra??ph00 RESTART results??ph00 sur timeseriesph02
---
Removing those files solved the problem (the files names are admittedly the result of some buggy code I wrote). By way of comparison I tried using git for these files and it worked. Traceback below:
---
maltron@
adding CS_model_
adding Data
bzr: failed to report crash using apport:
OSError(13, 'Permission denied')
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
no_recurse, action=action, save=not dry_run)
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
for subf in sorted(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfd in position 7: ordinal not in range(128)
bzr 2.2.1 on python 2.6.6 (Linux-
arguments: ['/usr/bin/bzr', 'add']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.utf8'
plugins:
bash_completion /usr/lib/
bzrtools /usr/lib/
launchpad /usr/lib/
netrc_
news_merge /usr/lib/
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
Related branches
- Martin Packman: Needs Fixing
-
Diff: 108 lines (+55/-2)5 files modifiedbreezy/bzr/inventorytree.py (+9/-0)
breezy/bzr/workingtree.py (+9/-1)
breezy/git/workingtree.py (+7/-1)
breezy/tests/per_workingtree/test_smart_add.py (+25/-0)
doc/en/release-notes/brz-3.0.txt (+5/-0)
tags: | added: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | removed: check-for-breezy |
Changed in brz: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Jelmer Vernooij (jelmer) |
milestone: | none → 3.0.0 |
Changed in brz: | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Fix Committed |
Changed in brz: | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Confirmed |
status: | Confirmed → Fix Committed |
Changed in bzr: | |
status: | Confirmed → Opinion |
status: | Opinion → Invalid |
status: | Invalid → Fix Released |
To judge from ls showing question marks, these file names aren't correct utf-8? Is that correct?
bzr only versions file with names that are supported by the filesystem encoding, so that we know how to decode them later. bzr 2.2.3 and later give a better message.