UnicodeDecodeError on 'log -p'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Undecided
|
Alexander Belchenko |
Bug Description
'log -p' have problems with files encoding.
'diff' works fine to show the patch.
$ bzr log -p -r-2
-------
revno: 1111
committer: XXX
branch nick: XXX
timestamp: Tue 2009-02-10 12:37:09 +0100
message:
XXX
diff:
=== modified file 'file'
--- file 2009-02-04 17:44:37 +0000
+++ file 2009-02-10 11:37:09 +0000
@@ -470,4 +470,123 @@
RewriteRule AAA BBB [R=301,L,NE]
RewriteRule "CCC" "DDD" [NE,QSA,L,R=301]
+
+
+
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/opt/lib/
return run_bzr(argv)
File "/opt/lib/
ret = run(*run_argv)
File "/opt/lib/
return self.run(
File "/opt/lib/
result = func(*args, **kwargs)
File "/opt/lib/
show_
File "/opt/lib/
start_revision, end_revision, search, limit, show_diff)
File "/opt/lib/
lf.
File "/opt/lib/
self.
File "/opt/lib/
to_
File "/opt/lib/
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 50: ordinal not in range(128)
bzr 1.12rc1 on python 2.5.2 (linux2)
arguments: ['/opt/bin/bzr', '--no-plugins', 'log', '-p']
encoding: 'ISO-8859-1', fsenc: 'ISO-8859-1', lang: 'en_US'
plugins:
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
I'm seeing this too. A reproduction case is to check out lp:~ubuntu-installer/ubiquity/trunk and run 'bzr log -p -r3043'.