Merge lp:~kissiel/checkbox/fix-unicode into lp:checkbox
Proposed by
Maciej Kisielewski
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Maciej Kisielewski | ||||||||||||
Approved revision: | 4113 | ||||||||||||
Merged at revision: | 4112 | ||||||||||||
Proposed branch: | lp:~kissiel/checkbox/fix-unicode | ||||||||||||
Merge into: | lp:checkbox | ||||||||||||
Diff against target: |
27 lines (+10/-2) 1 file modified
plainbox/plainbox/impl/exporter/__init__.py (+10/-2) |
||||||||||||
To merge this branch: | bzr merge lp:~kissiel/checkbox/fix-unicode | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Maciej Kisielewski | Approve | ||
Review via email: mp+278478@code.launchpad.net |
Description of the change
This MR solves a bunch of problems that happened on systems with bad locale settings.
Instead of crashing, checkbox-cli now displays a warning and ignores characters that cannot be printed.
To test it run: $ LC_ALL=en_US checkbox-cli, select any test plan and proceed till finish.
For terminals with utf-8 encoding, behaviour is unchanged.
68efedb plainbox:exporter: ignore non-printable characters on certain terminals
f70908b plainbox:exporter: fix PEP-8 issue
To post a comment you must log in.
Self-approving, as it was reviewed here: https:/ /code.launchpad .net/~kissiel/ checkbox/ fix-unicode/ +merge/ 277553, but due to broken pushes it reverted the patches, and LP marked the MR as merged.