Introduction / exception: UnicodeEncodeError
Christian Tschabuschnig
tschaboo at gmx.at
Tue Dec 18 14:56:08 GMT 2007
Hello,
I'm using subversion for some years for my small personal projects and
since Bazaar 1.0 was released I was playing around a bit and I'm really
impressed. For me the numerous advantages far outweigh the decrease in
speed for some operations. So I already decided to use Bazaar for most
new repositories in the future. Also - just from following the
mailing-list for 3-4 days - it looks like you, the developers, are
working really professional with a focus on quality. I want to thank you
for that.
Now my problem. This is what I did:
----
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr init
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr ignore "*.msf"
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr add . >
/dev/null
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr ignored >
/dev/null
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode
character u'\xf1' in position 59: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 802,
in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 758,
in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492,
in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 768,
in ignore_pipe
result = func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 2011,
in run
print '%-50s %s' % (path, pat)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in
position 59: ordinal not in range(128)
bzr 1.0.0.candidate.1 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'ignored']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bzrtools
/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.0.0]
gtk
/usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
launchpad
/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
multiparent
/usr/lib/python2.5/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
svn
/usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.5]
** Please send this report to bazaar at lists.ubuntu.com
with a description of what you were doing when the
error occurred.
----
I don't know much about character-encoding so I don't really know, where
to look. There are some files/folders with a space in the filename, but
I suppose that shouldn't be a problem? I'm able to reproduce the
problem. Also, I don't understand, why I don't get the error-message
when I don't pipe or redirect the output of "bzr ignored". If I enter
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ rm -rf ./.bzr
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ rm ./.bzrignore
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr init
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr ignore "*.msf"
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr add > /dev/null
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr ignored
it gives me the list of ignored files (223), but no error-message. If i
then enter again
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ rm -rf ./.bzr
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ rm ./.bzrignore
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr init
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr ignore "*.msf"
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr add > /dev/null
tschaboo at feisty64:/mnt/sdb2/TMPTHU/.mozilla-thunderbird$ bzr ignored | less
I get the first 15 ignored files, then the error-message, then another 2
ignored files and then the output ends.
Any ideas?
More information about the bazaar
mailing list