bzr shell: 'ascii' codec can't decode

Bug #718740 reported by Bastian
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BzrTools
Confirmed
Undecided
Unassigned

Bug Description

When I use the bzr shell on Windows 7 I get the following error on commiting changes with umlauts.

C:\foo> bzr shell
bzr xyz:64/> ci -m "foöö"
Unhandled error:
'ascii' codec can't decode byte 0x94 in position 2: ordinal not in range(128)

Bazaar (bzr) 2.2.3
  Python interpreter: C:\Program Files (x86)\Bazaar\python26.dll 2.6.4
  Python standard library: C:\Program Files (x86)\Bazaar\lib\library.zip
  Platform: Windows-post2008Server-6.1.7600
  bzrlib: C:\Program Files (x86)\Bazaar\lib\library.zip\bzrlib

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

Thanks for the report. Could you post the full traceback for the error? It should be in the .bzr.log file, which `bzr version` will tell you where to find.

affects: bzr → bzrtools
Changed in bzrtools:
status: New → Incomplete
Revision history for this message
Bastian (baztian) wrote :

Hi,

there is no traceback or any other recent output in my .bzr.log file even if I reproduce the bug and check again.

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

That's annoying, I've filed bug 719067 on the lack of more details in the log.

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

Traceback (most recent call last):
  File "...\bzrtools\shell.py", line 209, in default
    return (cmd_obj.run_argv_aliases(args, alias_args) or 0)
  File "...\bzrlib\commands.py", line 660, in run_argv_aliases
    args, opts = parse_args(self, argv, alias_argv)
  File "...\bzrlib\commands.py", line 824, in parse_args
    options, args = parser.parse_args(args)
  File "...\lib\optparse.py", line 1277, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "...\lib\optparse.py", line 1321, in _process_args
    self._process_short_opts(rargs, values)
  File "...\lib\optparse.py", line 1428, in _process_short_opts
    option.process(opt, value, values, self)
  File "...\lib\optparse.py", line 709, in process
    return self.take_action(
  File "...\lib\optparse.py", line 728, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "...\bzrlib\option.py", line 241, in _optparse_callback
    v = self.type(value)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 0: ordinal not in range(128)

So, this is a little like bug 563692 in bzr in effect, but with all non-ascii inputs rather than just type=str arguments.

Workaround: prepending 'bzr' to the command that failed bypasses the buggy shell command line parsing.

Martin Packman (gz)
Changed in bzrtools:
status: Incomplete → Confirmed
Revision history for this message
Bastian (baztian) wrote :

Thank you Martin. The workaround works :)

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.