UnicodeEncodeError when selftest output includes non-ascii
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
While testing Unicode handling in my mergetools branch, one of the tests failed and produced a failure report which included a unicode string (Инструмент). The selftest barfed with this UnicodeEncodeError, which does not seem to originate in my code but rather bzr's osutils.
Traceback (most recent call last):
File "C:\dev\
return the_callable(*args, **kwargs)
File "C:\dev\
ret = run(*run_argv)
File "C:\dev\
return self.run(
File "C:\dev\
return self._operation
File "C:\dev\
self.cleanups, self.func, *args, **kwargs)
File "C:\dev\
result = func(*args, **kwargs)
File "C:\dev\
result = tests.selftest(
File "C:\dev\
result_
File "C:\dev\
result = runner.run(suite)
File "C:\dev\
result.
File "C:\dev\
super(
File "C:\dev\
self.
File "build\
self.
File "C:\dev\
data, _ = self.encode(object, self.errors)
File "C:\Python26\
return codecs.
UnicodeEncodeError: 'charmap' codec can't encode characters in position 543-552: character maps to <undefined>
I have an mp up fixing this blocked on updating PQM. The bug I filed isn't all that clear, and the traceback like yours is in the large first comment at the bottom of a log in the parent bug, which probably hindered launchpad finding it for you.