Comment 11 for bug 429911

Revision history for this message
poulanker (pae) wrote : SV: [Bug 429911] Re: BZR > Explorer > UnicodeDecodeError

I have no python skills, but your instructions were good and easy to carry out :-)

This is the result of the print statement when I have entered just "notepad.exe" in the editor field:
'command is notepad.exe'
If I leave the editor field empty, you apparently try to resolve the path to wordpad.exe:
'command is C:/Programmer/Windows NT/Tilbeh°r/WORDPAD.EXE'

On my danish Windows XP this path contains a danish character (Accessories translates to Tilbehør in danish).
May I suggest that you do not try to resolve the path, but only default to the name of the editor. I also think that "notepad.exe" is a better choice, because I figure that the editor is only used for short messages like changes description, version info and the like.

I hope this helps.

________________________________________
Fra: <email address hidden> [<email address hidden>] P&#229; vegne af Ian Clatworthy [<email address hidden>]
Sendt: 21. september 2009 09:09
Til: Poul Anker Ersly
Emne: [Bug 429911] Re: BZR > Explorer > UnicodeDecodeError

I'd really like to get to the bottom of this ASAP. If appropriate, I'd
like it resolved by or fixed in 0.8.2.

How are your Python skills? Can you add a print statement to
split_command_options() in lib\explorer.py showing the value of command?
You'll want something like this ...

    print "command is %s" % command

Note that the print statement should occur just before
shlex_split_unicode() is called and be indented exactly 4 spaces like
the rest of the statements in that function.

--
BZR > Explorer > UnicodeDecodeError
https://bugs.launchpad.net/bugs/429911
You received this bug notification because you are a direct subscriber
of the bug.

Status in Bazaar Explorer: New

Bug description:
clicking on a file in the left window of bzr explorer produces an exception (see traceback below).
clicking on a directory does not produce the error.

Regards
Poul Anker Ersly

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

Traceback (most recent call last):
  File "C:/Programmer/Bazaar/plugins\explorer\lib\html_report_view.py", line 48, in do_link_action
  File "C:/Programmer/Bazaar/plugins\explorer\lib\explorer.py", line 1046, in _do_view_action
  File "C:/Programmer/Bazaar/plugins\explorer\lib\explorer.py", line 979, in edit_file
  File "C:/Programmer/Bazaar/plugins\explorer\lib\explorer.py", line 98, in split_command_options
  File "bzrlib\commands.pyo", line 882, in shlex_split_unicode
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf8 in position 31: ordinal not in range(128)

bzr 1.18.1 on python 2.5.4 (win32)
arguments: ['bzr', 'explorer']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Programmer\Bazaar\plugins\bzrtools [1.18]
  explorer C:\Programmer\Bazaar\plugins\explorer [0.8]
  launchpad C:\Programmer\Bazaar\plugins\launchpad [1.18.1]
  netrc_credential_store C:\Programmer\Bazaar\plugins\netrc_credential_store [1.18.1]
  qbzr C:\Programmer\Bazaar\plugins\qbzr [0.14.1]
  rebase C:\Programmer\Bazaar\plugins\rebase [0.5.3]
  svn C:\Programmer\Bazaar\plugins\svn [0.6.5]