Merge lp:~pwlars/checkbox/fix-unicode-result-history into lp:checkbox
Status: | Merged |
---|---|
Approved by: | Pierre Equoy |
Approved revision: | 4439 |
Merged at revision: | 4439 |
Proposed branch: | lp:~pwlars/checkbox/fix-unicode-result-history |
Merge into: | lp:checkbox |
Diff against target: |
9 lines (+1/-1) 1 file modified
plainbox/plainbox/impl/exporter/text.py (+1/-1) |
To merge this branch: | bzr merge lp:~pwlars/checkbox/fix-unicode-result-history |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pierre Equoy | Approve | ||
Review via email: mp+300120@code.launchpad.net |
Description of the change
I was getting an error [1] trying to run over ssh with the checkbox snap on rpi2. This seems to correct things for me, but it's strange, because the unicode it refers to is the checked box char I think. But I don't see that anywhere in the output. I also did a sanity check with plainbox self-test -u and it passed everything there too.
[1]
Count: 0
Undeclared exception UnicodeEncodeError raised from export_to_transport
-------
Outcome: job failed
History:
Traceback (most recent call last):
File "/snap/
return self._dispatch()
File "/snap/
result = ingredient.
File "/snap/
return self._dispatch(
File "/snap/
retval = command.
File "/snap/
self.
File "/snap/
exporter_id, transport)
File "/snap/
raise exc
File "/snap/
return func(*args, **kwargs)
File "/snap/
exporter.
File "/snap/
self.
File "/snap/
for result in state.result_
UnicodeEncodeError: 'ascii' codec can't encode character '\u2611' in position 0: ordinal not in range(128)
Please report a bug including the information from the paragraph above. To
report the bug visit https:/
We are sorry for the inconvenience!
+1
I don't know why the utf-8 encoding was missing in this very last case! Thanks for finding this out Paul!
We use this "\u2611" checkbox (☑) when printing out the text summary at the end of a session for all the jobs that passed (or, if they were run several times, for the time they passed).
Not sure why you don't see that in your output, but it should be here :)
(I just tested on a TTY on my computer — Ctrl+Alt+F1 — and it doesn't display unicode boxes but colored diamonds instead... but I think I'm in another situation, with colors available but ASCII only)