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å 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)
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: Windows NT/Tilbeh° r/WORDPAD. EXE'
'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/
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å 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 options( ) in lib\explorer.py showing the value of command?
split_command_
You'll want something like this ...
print "command is %s" % command
Note that the print statement should occur just before unicode( ) is called and be indented exactly 4 spaces like
shlex_split_
the rest of the statements in that function.
-- /bugs.launchpad .net/bugs/ 429911
BZR > Explorer > UnicodeDecodeError
https:/
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. UnicodeDecodeEr ror: 'ascii' codec can't decode byte 0xf8 in position 31: ordinal not in range(128)
Traceback (most recent call last): Bazaar/ plugins\ explorer\ lib\html_ report_ view.py" , line 48, in do_link_action Bazaar/ plugins\ explorer\ lib\explorer. py", line 1046, in _do_view_action Bazaar/ plugins\ explorer\ lib\explorer. py", line 979, in edit_file Bazaar/ plugins\ explorer\ lib\explorer. py", line 98, in split_command_ options commands. pyo", line 882, in shlex_split_unicode
File "C:/Programmer/
File "C:/Programmer/
File "C:/Programmer/
File "C:/Programmer/
File "bzrlib\
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) Bazaar\ plugins\ bzrtools [1.18] Bazaar\ plugins\ explorer [0.8] Bazaar\ plugins\ launchpad [1.18.1] credential_ store C:\Programmer\ Bazaar\ plugins\ netrc_credentia l_store [1.18.1] Bazaar\ plugins\ qbzr [0.14.1] Bazaar\ plugins\ rebase [0.5.3] Bazaar\ plugins\ svn [0.6.5]
arguments: ['bzr', 'explorer']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
bzrtools C:\Programmer\
explorer C:\Programmer\
launchpad C:\Programmer\
netrc_
qbzr C:\Programmer\
rebase C:\Programmer\
svn C:\Programmer\