UnicodeError while converting BzrError to unicode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
Bazaar Explorer |
Confirmed
|
High
|
Unassigned |
Bug Description
I installed Bazaar on an Ubuntu 10.10 server.
I created a test repository in /srv/bzr/
In that directory I initialised a branch called "trunk". In that branch I created a file called "first.file.txt" that contain some simple text. I added the file and commited the change.
Then when trying to open that URL from Bazaar Explorer on my desktop (French Windows 7 sp1), using the open URL with bzr://ubuntu-
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "C:/Program Files (x86)/Bazaar/
File "C:/Program Files (x86)/Bazaar/
File "C:/Program Files (x86)/Bazaar/
File "bzrlib\
UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in position 89: ordinal not in range(128)
bzr 2.3.0 on python 2.6.6 (win32)
arguments: ['C:\\Program Files (x86)\\
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
bzrtools C:\Program Files (x86)\Bazaar\
colo C:\Program Files (x86)\Bazaar\
explorer C:\Program Files (x86)\Bazaar\
fastimport C:\Program Files (x86)\Bazaar\
launchpad C:\Program Files (x86)\Bazaar\
loom C:\Program Files (x86)\Bazaar\
netrc_
news_merge C:\Program Files (x86)\Bazaar\
pipeline C:\Program Files (x86)\Bazaar\
qbzr C:\Program Files (x86)\Bazaar\
rewrite C:\Program Files (x86)\Bazaar\
svn C:\Program Files (x86)\Bazaar\
upload C:\Program Files (x86)\Bazaar\
xmloutput C:\Program Files (x86)\Bazaar\
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: error-reporting unicode |
And when trying the same thing from an Ubuntu desktop, I get the same error.
Exact error: UnicodeDecodeEr ror: 'ascii' codec can't decode byte 0xc3 in position 86: ordinal not in range(128)
bzr: ERROR: exceptions.
Traceback (most recent call last): python2. 6/dist- packages/ bzrlib/ plugins/ explorer/ lib/explorer. py", line 1450, in callable_ with_cleanup python2. 6/dist- packages/ bzrlib/ plugins/ explorer/ lib/explorer. py", line 1616, in _open_location_task virtual_ repo_open) python2. 6/dist- packages/ bzrlib/ plugins/ explorer/ lib/explorer. py", line 1648, in _show_unable_ to_open_ location unicode( ex)) python2. 6/dist- packages/ bzrlib/ errors. py", line 120, in __unicode__
File "/usr/lib/
task_callable()
File "/usr/lib/
auto_
File "/usr/lib/
why = gettext(
File "/usr/lib/
u = unicode(u)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 86: ordinal not in range(128)
bzr 2.2.1 on python 2.6.6 (linux2) python2. 6/dist- packages/ bzrlib/ plugins/ bash_completion [2.2.1] python2. 6/dist- packages/ bzrlib/ plugins/ bzrtools [2.2.0] python2. 6/dist- packages/ bzrlib/ plugins/ explorer [1.1.0] python2. 6/dist- packages/ bzrlib/ plugins/ launchpad [2.2.1] credential_ store /usr/lib/ python2. 6/dist- packages/ bzrlib/ plugins/ netrc_credentia l_store [2.2.1] python2. 6/dist- packages/ bzrlib/ plugins/ news_merge [2.2.1] python2. 6/dist- packages/ bzrlib/ plugins/ qbzr [0.1
arguments: ['/usr/bin/bzr', 'explorer']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'fr_FR.utf8'
plugins:
bash_completion /usr/lib/
bzrtools /usr/lib/
explorer /usr/lib/
launchpad /usr/lib/
netrc_
news_merge /usr/lib/
qbzr /usr/lib/