UnicodeDecodeError in _inaccessible_normalized_filename
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Bazaar |
Medium
|
Unassigned | ||
| Bazaar Git Plugin |
Medium
|
Jelmer Vernooij | ||
| Breezy |
Medium
|
Unassigned |
Bug Description
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/local/
return the_callable(*args, **kwargs)
File "/usr/local/
ret = run(*run_argv)
File "/usr/local/
return self.run(
File "/usr/local/
source_
File "/usr/local/
hardlink=
File "/usr/local/
accelerator
File "/usr/local/
basis = accelerator_
File "/usr/local/
if revision_id == self.last_
File "/usr/local/
return self._last_
File "/usr/local/
self.
File "/usr/local/
self.
File "/root/
self.
File "/root/
ie = self.add_path(path, kind, file_id, self.add_
File "/usr/local/
ie = make_entry(kind, parts[-1], parent_id, file_id)
File "/usr/local/
name = ensure_
File "/usr/local/
norm_name, can_access = osutils.
File "/usr/local/
normalized = unicodedata.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 25: ordinal not in range(128)
Related branches
summary: |
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 25: ordinal not in range(128) - Traceback (most recent call last): File "/usr/local/lib/python2.6 - /site-packages/bzrlib/commands.py", line 729, in - exception_to_return_code return the_callable(*args, **kwargs) File - "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 924, - in run_bzr ret = run(*run_argv) File "/usr/local/lib/python2.6 - /site-packages/bzrlib/commands.py", line 560, in run_argv_aliases - return self.run(**all_cmd_args) File "/usr/local/lib/python2.6/site- - packages/bzrlib/builtins.py", line 1143, in run - source_branch=br_from) File "/usr/local/lib/python2.6/site- - packages/bzrlib/bzrdir.py", line 1195, in sprout hardlink=hardlink) - File "/usr/local/lib/python2.6/site-packages/bzrlib/bzrdir.py", line - 1599, in create_workingtree accelerator_tree=accelerator_tree, - hardlink=hardlink) File "/usr/local/lib/python2.6/site- - packages/bzrlib/workingtree_4.py", line 1418, in initialize basis = - accelerator_tree.revision_tree(revision_id) File - "/usr/local/lib/python2.6/site-packages/bzrlib/workingtree.py", line - 2054, in revision_tree if revision_id == self.last_revision(): - File "/usr/local/lib/python2.6/site-packages/bzrlib/workingtree.py", - line 1751, in last_revision return self._last_revision() File - "/usr/local/lib/python2.6/site-packages/bzrlib/decorators.py", line 136, - in read_locked self.lock_read() File "/usr/local/lib/python2.6 - /site-packages/bzrlib/workingtree.py", line 1768, in lock_read - self._reset_data() File "/root/.bazaar/plugins/git/workingtree.py", - line 161, in _reset_data self.repository._git.object_store) File - "/root/.bazaar/plugins/git/inventory.py", line 283, in __init__ ie = - self.add_path(path, kind, file_id, self.add_parents(path)) File - "/usr/local/lib/python2.6/site-packages/bzrlib/inventory.py", line 1288, - in add_path ie = make_entry(kind, parts[-1], parent_id, file_id) - File "/usr/local/lib/python2.6/site-packages/bzrlib/inventory.py", line - 2004, in make_entry name = ensure_normalized_name(name) File - "/usr/local/lib/python2.6/site-packages/bzrlib/inventory.py", line 2023, - in ensure_normalized_name norm_name, can_access = - osutils.normalized_filename(name) File "/usr/local/lib/python2.6/site- - packages/bzrlib/osutils.py", line 1185, in - _inaccessible_normalized_filename normalized = - unicodedata.normalize('NFC', unicode(path)) UnicodeDecodeError: 'ascii' - codec can't decode byte 0xc3 in position 25: ordinal not in range(128) |
summary: |
- bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode - byte 0xc3 in position 25: ordinal not in range(128) + UnicodeDecodeError in _inaccessible_normalized_filename |
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Martin Packman (gz) wrote : | #1 |
tags: | added: unicode |
Martin Packman (gz) wrote : | #2 |
It's possible that it's just the bzr-git plugin doing something wrong by passing byte strings to the bzrlib inventory code, but even if so, the bzrlib side should be much more robust.
Martin Packman (gz) wrote : | #3 |
mkdir gitfsenc
cd gitfsenc
git init
python -c "file(u'
git add .
git commit -m "Initial version (filesystem encoding)"
Martin Packman (gz) wrote : | #4 |
Missed the final step in that repo script, which was `bzr ls` though other things may also break.
The warning from bzrlib.
Changed in bzr-git: | |
status: | New → Fix Released |
importance: | Undecided → Medium |
assignee: | nobody → Jelmer Vernooij (jelmer) |
Fabien Tassin (fta) wrote : | #5 |
fix released? really?
in oneiric, etckeeper is broken because of bzr:
/etc/cron.
bzr: failed to report crash using apport:
AssertionE
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 0xc4 in position 34: ordinal not in range(128)
bzr 2.4b2 on python 2.7.2rc1 (Linux-
Ubuntu-
arguments: ['/usr/bin/bzr', 'add', '-q', '.']
plugins: bash_completion
changelog_
netrc_
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
*** 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.
etckeeper warning: bzr add failed
Jelmer Vernooij (jelmer) wrote : | #6 |
That's a different bug, which is not related to bzr-git. You seem to have a non-utf8 filename in your /etc directory.
Martin Packman (gz) wrote : | #7 |
Fabien, you want bug 715547 not this one, lots of different problems can result in a UnicodeDecodeError so where the traceback comes from matters.
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |
Changed in brz: | |
status: | New → Fix Released |
importance: | Undecided → Medium |
milestone: | none → 3.0.0 |
Can someone who has hit this give steps to reproduce? I am presuming this is related to bzr-git and non-ascii filenames, but trying some things out got bug 587074 rather than this one. I could fix the _inaccessible_ normalized_ filename function, but don't want to fiddle without knowing the root cause.