Unicode exception occurs by "version-info"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Andrej A Antonov |
Bug Description
When log comment includes the non ascii characters,
"bzr version-info" command crashs by UnicodeDecodeError exception.
$ bzr branch lp:bzr bzr.dev
$ cd bzr.dev
$ bzr version-info --include-history
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run_
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
builder.
File "/usr/lib/
writer.
File "/usr/lib/
stanza.
File "/usr/lib/
to_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 83219: ordinal not in range(128)
bzr 2.1.0rc2 on python 2.6.4 (Linux-
arguments: ['/usr/bin/bzr', 'version-info', '--include-
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'ja_JP.utf8'
plugins:
launchpad /usr/lib/
netrc_
news_merge /usr/lib/
*** 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:/
including this traceback and a description of the problem.
Related branches
- Robert Collins (community): Needs Fixing
-
Diff: 68 lines (+11/-4)3 files modifiedNEWS (+4/-0)
bzrlib/rio.py (+1/-1)
bzrlib/tests/test_version_info.py (+6/-3)
- Martin Packman (community): Approve
-
Diff: 48 lines (+21/-1)3 files modifiedNEWS (+4/-0)
bzrlib/cmd_version_info.py (+1/-1)
bzrlib/tests/blackbox/test_version_info.py (+16/-0)
Changed in bzr: | |
status: | Confirmed → In Progress |
assignee: | nobody → Parth Malwankar (parthm) |
Changed in bzr: | |
assignee: | Parth Malwankar (parthm) → nobody |
status: | In Progress → Confirmed |
tags: | added: affect-emacs |
Changed in bzr: | |
status: | Confirmed → Fix Released |
assignee: | nobody → Andrej A Antonov (polymorphm) |
milestone: | none → 2.3b2 |
version-info needs to declare that it's producing unicode output, etc.