UnicodeDecodeError with BzrError containing localised error message from OS

Bug #599860 reported by Salvador
52
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Confirmed
Medium
Unassigned
bzr-explorer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 84: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/explorer/lib/explorer.py", line 1405, in callable_with_cleanup
    task_callable()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/explorer/lib/explorer.py", line 1571, in _open_location_task
    auto_virtual_repo_open)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/explorer/lib/explorer.py", line 1603, in _show_unable_to_open_location
    why = gettext(unicode(ex))
  File "/usr/lib/python2.6/dist-packages/bzrlib/errors.py", line 120, in __unicode__
    u = unicode(u)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 84: ordinal not in range(128)

bzr 2.1.1 on python 2.6.5 (linux2)
arguments: ['/usr/bin/bzr', 'explorer']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'es_MX.utf8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.1.0]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1.0dev]
  explorer /usr/lib/python2.6/dist-packages/bzrlib/plugins/explorer [1.0.1]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.98.0.final.1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.1.1]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.1.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.1.1]
  qbzr /usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr [0.18.6]

Tags: unicode
Revision history for this message
Alexander Belchenko (bialix) wrote :

IIUC, you've tried to open directory with non-ascii characters in its name? Does name of the directory is valid unicode string or it has some special characters?

Changed in bzr-explorer:
status: New → Confirmed
importance: Undecided → Medium
tags: added: unicode
Revision history for this message
Lukáš Machyán (phobulos) wrote :

I have very similar problem. When I try to open directory with non-ascii characters in path (directory called "Programování") I get an error like this. However a title is "bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 30: ordinal not in range(128)", so it's Encode instead of Decode Error.

I noticed this after I upgraded from Ubuntu 11.04 to 11.10. I didn't get this error message in previous version of Ubuntu. I'm sending an attachment with error log.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bzr-explorer (Ubuntu):
status: New → Confirmed
Revision history for this message
Martin Packman (gz) wrote :

See bug 273978 for the bzrlib side of this problem.

summary: - bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode
- byte 0xc3 in position 84: ordinal not in range(128)
+ UnicodeDecodeError with BzrError containing localised error message from
+ OS
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.