Bug report

Fabien Poulard Fabien.Poulard at univ-nantes.fr
Fri Nov 16 09:54:07 GMT 2007


Hi all,

I was trying to use Bazaar on my work, and especially on some text files 
of my personal wiki. It seems that bazaar does not recognize the utf-8 
encoding of something ... don't know what exactly.

The problematic file is provided as an attachment to this email.

I'm using the Ubuntu 7.10 version of Bazaar and the directory used for 
my repository is :
/home/grdscarabe/Thèse

Changing the repository to /home/grdscarabe/These just works ! So I 
guess there is something with path encoding of the repository :)

The execution stack below :

added dokuwikidata/pages/akiko2003.txt
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode 
character u'\xe8' in position 19: ordinal not in range(128)

Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 817, 
in run_bzr_catch_errors
     return run_bzr(argv)
   File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 779, 
in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 477, 
in run_argv_aliases
     return self.run(**all_cmd_args)
   File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 
2283, in run
     reporter=reporter, revprops=properties)
   File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 
165, in write_locked
     return unbound(self, *args, **kwargs)
   File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 
246, in commit
     result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
   File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 
165, in write_locked
     return unbound(self, *args, **kwargs)
   File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 
207, in commit
     revprops=revprops, *args, **kwargs)
   File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 300, 
in commit
     self._update_builder_with_changes()
   File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 607, 
in _update_builder_with_changes
     self._populate_from_inventory(specific_files)
   File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 679, 
in _populate_from_inventory
     parent_id, definitely_changed, existing_ie)
   File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 731, 
in _record_entry
     path, self.work_tree)
   File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 
2133, in record_entry_contents
     ie.snapshot(self._new_revision_id, path, previous_entries, tree, self)
   File "/usr/lib/python2.5/site-packages/bzrlib/inventory.py", line 
427, in snapshot
     self._read_tree_state(path, work_tree)
   File "/usr/lib/python2.5/site-packages/bzrlib/inventory.py", line 
814, in _read_tree_state
     self.symlink_target = work_tree.get_symlink_target(self.file_id)
   File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 
900, in get_symlink_target
     return os.readlink(self.id2abspath(file_id))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in 
position 19: ordinal not in range(128)

bzr 0.90.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'commit']
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: akiko2003.txt
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20071116/81b95a88/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fabien_Poulard.vcf
Type: text/x-vcard
Size: 327 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071116/81b95a88/attachment-0001.vcf 


More information about the bazaar mailing list