(Sub-)Folder with Umlaut cannot be added

Bug #337742 reported by Marco Janker
4
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I tried to add a folder structure where some folders contain german Umlaut (ÜÖÄ). If such a folder is a subfolder it is not added and this error message is displayed. If the same folder is a top level folder it is added without any problem. The top level folder contains special characters (e.g. spaces).

=========== Error =============

$ bzr add Top\ Level/
adding "Top Level/ÄÖÜ"
bzr: ERROR: exceptions.KeyError: u'A\u0308O\u0308U\u0308'

Traceback (most recent call last):
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py", line 896, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py", line 842, in run_bzr
    ret = run(*run_argv)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py", line 542, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/builtins.py", line 531, in run
    no_recurse, action=action, save=not dry_run)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 462, in smart_add
    this_ie = parent_ie.children[directory.base_path]
KeyError: u'A\u0308O\u0308U\u0308'

bzr 1.12 on python 2.5.4 (darwin)
arguments: ['/opt/local/bin/bzr', 'add', 'Top Level/']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'de_DE.UTF-8'
plugins:
  bzrtools /Users/moi/.bazaar/plugins/bzrtools [1.1]
  difftools /Users/moi/.bazaar/plugins/difftools [0.91]
  fastimport /Users/moi/.bazaar/plugins/fastimport [unknown]
  launchpad /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
  rebase /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.4.2]
  svn /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/plugins/svn [0.5.2]
*** 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.

description: updated
Revision history for this message
Michael Mahlberg (mm-michaelmahlberg) wrote :

Same situation with me (Mac OS X, 10.5):
adding "PlanungBüroFriesenwall"
bzr: ERROR: exceptions.KeyError: u'PlanungBu\u0308roFriesenwall'

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.5/site-packages/bzrlib/builtins.py", line 584, in run
    no_recurse, action=action, save=not dry_run)
  File "/Library/Python/2.5/site-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/mutabletree.py", line 482, in smart_add
    this_ie = parent_ie.children[directory.base_path]
KeyError: u'PlanungBu\u0308roFriesenwall'

bzr 1.13.1 on python 2.5.1 (darwin)
arguments: ['/usr/local/bin/bzr', 'add', '.']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'de_DE.UTF-8'
plugins:
  bzrtools /Library/Python/2.5/site-packages/bzrlib/plugins/bzrtools [1.13]
  email /Library/Python/2.5/site-packages/bzrlib/plugins/email [unknown]
  extmerge /Library/Python/2.5/site-packages/bzrlib/plugins/extmerge [unknown]
  launchpad /Library/Python/2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  loom /Library/Python/2.5/site-packages/bzrlib/plugins/loom [1.4dev]
  netrc_credential_store /Library/Python/2.5/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
  qbzr /Library/Python/2.5/site-packages/bzrlib/plugins/qbzr [0.9.9]
  rebase /Library/Python/2.5/site-packages/bzrlib/plugins/rebase [0.4.5dev]
  search /Library/Python/2.5/site-packages/bzrlib/plugins/search [1.7dev]
  svn /Library/Python/2.5/site-packages/bzrlib/plugins/svn [0.5.3]
*** 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.

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.