qbzr crashed with UnicodeDecodeError in run_subprocess_command()
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Bazaar |
Invalid
|
Undecided
|
Unassigned | |||
QBzr | Status tracked in Trunk | |||||
0.20 |
Fix Released
|
Critical
|
Martin Packman | |||
Trunk |
Fix Released
|
Critical
|
Martin Packman | |||
bzr (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bzr
Something about ascii decoding - my english is bad :(
ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: bzr 2.2.1-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-23-generic i686
NonfreeKernelMo
Architecture: i386
BzrDebugFlags: set()
BzrVersion: 2.2.1
CommandLine:
['/usr/bin/bzr',
'qsubprocess',
'--bencode',
'l8:checkout1
CrashDb: bzr
Date: Tue Dec 7 22:48:18 2010
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
InterpreterPath: /usr/bin/python2.6
Locale: ru_RU.utf8
Platform: Linux-2.
ProcCmdline: /usr/bin/python /usr/bin/bzr qsubprocess --bencode l8:checkout13:
ProcEnviron:
LANG=ru_RU.utf8
SHELL=/bin/bash
PythonVersion: 2.6.6
SourcePackage: bzr
Title: bzr crashed with UnicodeDecodeError in run_subprocess_
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
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/
return run_subprocess_
File "/usr/lib/
val = unicode(val)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 13: ordinal not in range(128)
Related branches
- Alexander Belchenko: Approve
-
Diff: 155 lines (+91/-12)2 files modifiedlib/subprocess.py (+46/-12)
lib/tests/test_subprocess.py (+45/-0)
tags: | removed: need-duplicate-check |
description: | updated |
visibility: | private → public |
summary: |
- bzr crashed with UnicodeDecodeError in run_subprocess_command() + qbzr crashed with UnicodeDecodeError in run_subprocess_command() |
Changed in qbzr: | |
assignee: | Alexander Belchenko (bialix) → nobody |
Can hit the problem by making the blackbox tests use a non-ascii path like so:
=== modified file 'bzrlib/ tests/blackbox/ test_conflicts. py' tests/blackbox/ test_conflicts. py 2010-11-07 16:32:51 +0000 tests/blackbox/ test_conflicts. py 2011-04-13 14:05:01 +0000
('%s/ myfile' % (this_path,), 'contentsa2\n'),
('%s/ my_other_ file' % (this_path,), 'contentsa2\n'), rename_ one('mydir' , 'mydir3') rename_ one('mydir' , u'mydir3\xa0') tree.commit( message= 'change' ) tree.merge_ from_branch( other_tree. branch)
--- bzrlib/
+++ bzrlib/
@@ -43,7 +43,7 @@
])
- this_tree.
+ this_tree.
this_
this_
return this_tree, other_tree