UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 33: ordinal not in range(128)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UTAH |
Fix Released
|
Medium
|
Javier Collado |
Bug Description
When I start the utah client on the demo tests that we created during the tests, it crashes with
$ sudo utah -r master.run
---
commands:
- cmd_type: testsuite_fetch
command: bzr branch /home/martin/
returncode: 0
start_time: '2012-10-25 17:59:34.966693'
stderr: |
Branched 7 revisions.
stdout: ''
time_delta: '0:00:00.289332'
user: root
- cmd_type: testsuite_fetch
command: bzr revno
returncode: 0
start_time: '2012-10-25 17:59:35.256391'
stderr: ''
stdout: |
7
time_delta: '0:00:00.107578'
user: root
- cmd_type: testsuite_setup
command: touch /tmp/foo
returncode: 0
start_time: '2012-10-25 17:59:35.403232'
stderr: ''
stdout: ''
testsuite: /var/lib/
time_delta: '0:00:00.003152'
user: root
- cmd_type: testcase_test
command: /bin/true
extra_info:
action: |
1. Run /bin/true
dependencies: coreutils
description: basic sys sanity check
expected_
1. /bin/true exists with zero
returncode: 0
start_time: '2012-10-25 17:59:35.450644'
stderr: ''
stdout: ''
testcase: test_one
testsuite: /var/lib/
time_delta: '0:00:00.015090'
user: utah
- cmd_type: testcase_test
command: wget fail://example.com
extra_info:
action: |
1. use wget to retrieve fail://example.com
dependencies: wget
description: test wget for fail:// protocol
expected_
1. wget retrieves example.com
returncode: 1
start_time: '2012-10-25 17:59:35.533382'
/usr/lib/
if value == u'':
stderr:Traceback (most recent call last):
File "/usr/bin/utah", line 140, in <module>
main()
File "/usr/bin/utah", line 131, in main
returncode = runner.run()
File "/usr/lib/
return self.process_
File "/usr/lib/
self.
File "/usr/lib/
default_
File "/usr/lib/
return dump_all([data], stream, Dumper=Dumper, **kwds)
File "/usr/lib/
dumper.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
style=
File "/usr/lib/
self.state()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.style = self.choose_
File "/usr/lib/
self.analysis = self.analyze_
File "/usr/lib/
if scalar.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 33: ordinal not in range(128)
This doesn't happen with LANG=C, so I figure it wants to show some translated text. I'm running under a German locale (de_DE.UTF-8), on Quantal.
I don't think it's specific to the actual tests, it happened from revision 1 on, but I'm attaching the complete test dir including .bzr for reference.
Related branches
- Joe Talbott (community): Approve
-
Diff: 80 lines (+29/-6)2 files modifiedutah/client/common.py (+19/-0)
utah/client/result.py (+10/-6)
Changed in utah: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in utah: | |
assignee: | nobody → Javier Collado (javier.collado) |
status: | Triaged → In Progress |
Changed in utah: | |
status: | In Progress → Fix Committed |
Changed in utah: | |
status: | Fix Committed → Fix Released |
Reproduced the problem using German locale. The problem is with the characters around fail in the following line:
fail://example.com: Nicht unterstütztes Schema »fail«.
I'll investigate how to make yaml happy about them.