Internal error when selecting branch configuration

Bug #892264 reported by Gilles
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
New
Undecided
Unassigned

Bug Description

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

Traceback (most recent call last):
  File "C:/prg/dev/Bazaar/plugins\explorer\lib\explorer.py", line 1947, in do_set_branch_configuration
  File "C:/prg/dev/Bazaar/plugins\explorer\lib\explorer.py", line 1232, in edit_config_file
  File "C:/prg/dev/Bazaar/plugins\explorer\lib\explorer.py", line 1272, in edit_file
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 23: ordinal not in range(128)

bzr 2.4.2 on python 2.6.6 (win32)
arguments: ['C:\\prg\\dev\\Bazaar\\bzrw.exe', 'explorer']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\prg\dev\Bazaar\plugins\bzrtools [2.4.1]
  changelog_merge C:\prg\dev\Bazaar\plugins\changelog_merge [2.4.2]
  colo C:\prg\dev\Bazaar\plugins\colo [0.3.1dev]
  explorer C:\prg\dev\Bazaar\plugins\explorer [1.2.1]
  fastimport C:\prg\dev\Bazaar\plugins\fastimport [0.12.0dev]
  launchpad C:\prg\dev\Bazaar\plugins\launchpad [2.4.2]
  loom C:\prg\dev\Bazaar\plugins\loom [2.2.1dev]
  netrc_credential_store C:\prg\dev\Bazaar\plugins\netrc_credential_store [2.4.2]
  news_merge C:\prg\dev\Bazaar\plugins\news_merge [2.4.2]
  pipeline C:\prg\dev\Bazaar\plugins\pipeline [1.1.0]
  qbzr C:\prg\dev\Bazaar\plugins\qbzr [0.21.1]
  rewrite C:\prg\dev\Bazaar\plugins\rewrite [0.6.3dev]
  svn C:\prg\dev\Bazaar\plugins\svn [1.1.0]
  upload C:\prg\dev\Bazaar\plugins\upload [1.0.1dev]
  xmloutput C:\prg\dev\Bazaar\plugins\xmloutput [0.8.7]

Revision history for this message
Martin Packman (gz) wrote :

In bzr-explorer 1.2.1 the explorer.py line 1272, in edit_file is:

    msg = gettext("Failed to edit '%(path)s' using '%(editor)s'.") % \
            {'path': path, 'editor': editor}
    info = gettext(
        "You may want to install the matching application or change the configured editor.")
> details = unicode(ex)
    self.show_error(gettext("Sorry"), msg, info, details)

So, this a knock-on failure trying to format an error report including localised messages from the OS, see the existing bug report for more. To resolve the root cause, check your editor setting.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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