** Summary changed:

- exceptions.UnicodeEncodeError: 'ascii' codec can't encode character
+ [master] bzr can't handle files with filenames that can't be decoded to 
unicode

** Description changed:

- Binary package hint: bazaar
+ Bazaar treats file names as Unicode, not as byte strings.  If you have
+ files in the working tree whose name is not valid in the filesystem
+ encoding, they cause problems.
+ 
+ ----
  
  I try to use bazaar to track changes in a wine directory. i have
  problems with some folder name when I try to add it.
  
  $ bzr status
  added:
    drive_c/windows/profiles/mildred/Mes vidéos@
  $ bzr ci -m 'try to add Mes vidéos'
  bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode 
character u'\xe9' in position 61: ordinal not in range(128)
  
  Traceback (most recent call last):
    File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 612, in 
run_bzr_catch_errors
      return run_bzr(argv)
    File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 574, in 
run_bzr
      ret = run(*run_argv)
    File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 283, in 
run_argv_aliases
      return self.run(**all_cmd_args)
    File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1757, in 
run
      reporter=reporter)
    File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 51, in 
write_locked
      return unbound(self, *args, **kwargs)
    File "/usr/lib/python2.4/site-packages/bzrlib/workingtree.py", line 538, in 
commit
      committed_id = Commit().commit( working_tree=self, revprops=revprops,
    File "/usr/lib/python2.4/site-packages/bzrlib/commit.py", line 287, in 
commit
      self._populate_new_inv()
    File "/usr/lib/python2.4/site-packages/bzrlib/commit.py", line 519, in 
_populate_new_inv
      path, self.work_tree)
    File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 2110, in 
record_entry_contents
      ie.snapshot(self._new_revision_id, path, previous_entries, tree, self)
    File "/usr/lib/python2.4/site-packages/bzrlib/inventory.py", line 415, in 
snapshot
      self._read_tree_state(path, work_tree)
    File "/usr/lib/python2.4/site-packages/bzrlib/inventory.py", line 798, in 
_read_tree_state
      self.symlink_target = work_tree.get_symlink_target(self.file_id)
    File "/usr/lib/python2.4/site-packages/bzrlib/workingtree.py", line 714, in 
get_symlink_target
      return os.readlink(self.id2abspath(file_id))
  UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 
61: ordinal not in range(128)
  
  bzr 0.10.0 on python 2.4.4.candidate.0 (linux2)
  arguments: ['/usr/bin/X11/bzr', 'ci', '-m', 'try to add Mes vid\xc3\xa9os']
  
  ** please send this report to [email protected]
  $ bzr --version
  Bazaar (bzr) 0.10.0
  Using python interpreter: /usr/bin/python
  Using python standard library: /usr/lib/python2.4
  Using bzrlib: /usr/lib/python2.4/site-packages/bzrlib
  
  Copyright 2005, 2006 Canonical Development Ltd.
  http://bazaar-vcs.org/
  
  bzr comes with ABSOLUTELY NO WARRANTY.  bzr is free software, and
  you may use, modify and redistribute it under the terms of the GNU
  General Public License version 2 or later.

** Tags added: unicode

-- 
[master] bzr can't handle files with filenames that can't be decoded to unicode
https://bugs.launchpad.net/bugs/63324
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to