bzr status crash w/ svn checkout

Bug #183853 reported by Wesley J. Landaker
2
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Bazaar Subversion Plugin
Fix Released
Medium
Jelmer Vernooij
bzr-svn (Ubuntu)
Fix Released
Medium
Jelmer Vernooij

Bug Description

When I check out a repository with svn, then use bzr status, I get the following error message. I believe this is caused because of a directory named "I²C" in the SVN repository. However, I'm not sure why this is a problem, since the name is correct UTF-8, and my locale is (and always has been) UTF-8. No matter the cause, it shouldn't cause a crash.

bzr: ERROR: libsvn._core.SubversionException: ("Can't convert string from native encoding to 'UTF-8':", 22)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 806, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 762, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 772, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 185, in run
    tree, file_list = tree_files(file_list)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 64, in tree_files
    return internal_tree_files(file_list, default_branch)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 88, in internal_tree_files
    return WorkingTree.open_containing(default_branch)[0], file_list
  File "/usr/lib/python2.4/site-packages/bzrlib/workingtree.py", line 352, in open_containing
    return control.open_workingtree(), relpath
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/workingtree.py", line 739, in open_workingtree
    return SvnWorkingTree(self, self.local_path, self.open_branch())
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/workingtree.py", line 80, in __init__
    status = svn.wc.revision_status(self.basedir, None, True, None, None)
  File "/var/lib/python-support/python2.4/libsvn/wc.py", line 1577, in svn_wc_revision_status
    return apply(_wc.svn_wc_revision_status, args)
SubversionException: ("Can't convert string from native encoding to 'UTF-8':", 22)

bzr 1.1.0.candidate.1 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'status']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools [1.1.0]
  email /usr/lib/python2.4/site-packages/bzrlib/plugins/email [unknown]
  gtk /usr/lib/python2.4/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent /usr/lib/python2.4/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
  rebase /usr/lib/python2.4/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.4/site-packages/bzrlib/plugins/svn [0.4.6]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

This also comes up if I try to checkout with bzr instead of checking out with svn; this is probably due to the same issue, and indicates it's perhaps a normalization-form issue between SVN and bzr:

bzr: ERROR: Path "I²C" is not unicode normalized

(And then checkout then fails)

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Fixed in the 0.4. branch.

Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → Medium
milestone: none → 0.4.7
status: New → Fix Committed
assignee: nobody → jelmer
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I've committed a fix to make bzr status in a svn checkout with non-ascii utf8 characters work.

The name I²C is a little bit different and the "Path is not unicode normalized" error comes from core Bazaar. The same error will occur if you try to use that name with Bazaar itself.

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
Changed in bzr:
status: Fix Released → Invalid
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.