Reviewers: mp+217067_code.launchpad.net, Message: Please take a look. Description: Check unicode support. Ensure utf-8 is supported before starting the Urwid interactive session. This way we hope to avoid bad crashes when the user has locale configuration problems. Tests: `make check`. QA: If you have juju-quickstart installed, you should be able to make it crash by overriding all the language env vars, like the following: `LC_ALL=C juju-quickstart -i` You should see a UnicodeEncodeError: 'ascii' codec can't encode character u'\u2582' in position 0: ordinal not in range(128) With this branch, the following should instead work as usual: `LC_ALL=C .venv/bin/python juju-quickstart -i`. I am not sure how to make Urwid fail so that we can QA the system exit in the code, but at least that code path is tested. https://code.launchpad.net/~frankban/juju-quickstart/check-locale/+merge/217067 (do not edit description out of merge proposal) Please review this at https://codereview.appspot.com/90740043/ Affected files (+57, -0 lines): A [revision details] M quickstart/cli/base.py M quickstart/tests/cli/test_base.py Index: [revision details] === added file '[revision details]' --- [revision details] 2012-01-01 00:00:00 +0000 +++ [revision details] 2012-01-01 00:00:00 +0000 @@ -0,0 +1,2 @@ +Old revision: