bzr version-info crashes with UnicodeEncodeError when comment contains non-ascii string.

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

Bug Description

C:\home\inada-n\test>bzr init foo
Created a standalone tree (format: 2a)
C:\home\inada-n\test>cd foo
C:\home\inada-n\test\foo>echo foo > foo
C:\home\inada-n\test\foo>bzr add foo
adding foo
C:\home\inada-n\test\foo>bzr ci -m "あいう"
Committing to: C:/home/inada-n/test/foo/
added foo
Committed revision 1.
C:\home\inada-n\test\foo>bzr version-info --all
revision-id: <email address hidden>
date: 2010-10-13 14:11:20 +0900
build-date: 2010-10-13 14:11:49 +0900
revno: 1
branch-nick: foo
clean: True
revisions: id: <email address hidden>
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 10: ordinal not in range(128
)

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 912, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1112, in run_bzr
  File "bzrlib\commands.pyo", line 690, in run_argv_aliases
  File "bzrlib\commands.pyo", line 705, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\cmd_version_info.pyo", line 119, in run
  File "bzrlib\version_info_formats\format_rio.pyo", line 80, in generate
  File "bzrlib\rio.pyo", line 49, in write_stanza
  File "bzrlib\rio.pyo", line 215, in write
  File "bzrlib\ui\text.pyo", line 542, in writelines
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 10: ordinal not in range(128)

bzr 2.2.1 on python 2.6.4 (Windows-XP-5.1.2600-SP3)
arguments: ['bzr', 'version-info', '--all']
encoding: 'cp932', fsenc: 'mbcs', lang: 'ja'
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.2.0]
  colo C:\Program Files\Bazaar\plugins\colo [0.1.0]
  explorer C:\Program Files\Bazaar\plugins\explorer [1.1.0]
  fastimport C:\Program Files\Bazaar\plugins\fastimport [0.9.0dev]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.2.1]
  loom C:\Program Files\Bazaar\plugins\loom [2.2.1dev]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store [2.2.1]
  news_merge C:\Program Files\Bazaar\plugins\news_merge [2.2.1]
  pipeline C:\Program Files\Bazaar\plugins\pipeline [unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.19.2]
  rewrite C:\Program Files\Bazaar\plugins\rewrite [0.6.1]
  svn C:\Program Files\Bazaar\plugins\svn [1.0.4]
  upload C:\Program Files\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files\Bazaar\plugins\xmloutput [0.8.6]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Revision history for this message
Martin Pool (mbp) wrote :

This looks like a dupe of bug 518609, fixed in 2.3b2. If not, please reopen. Thanks, Inada!

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.