diff options
author | Andreas Bießmann <andreas@biessmann.de> | 2013-12-09 13:30:53 +0100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-01-28 20:54:40 +0800 |
commit | 5ccc2d9900f691ac6e3000836d052f60e0d1e726 (patch) | |
tree | 231acad4265fd20b631dfa8630c8d758d1c05791 /tools | |
parent | c4e5d9641d67662d30999e2e626bc0945dd1f4c2 (diff) | |
download | patchwork-5ccc2d9900f691ac6e3000836d052f60e0d1e726.tar patchwork-5ccc2d9900f691ac6e3000836d052f60e0d1e726.tar.gz |
pwclient: fix handling UTF-8 in patch info
This patch fixes following error when redirecting 'pwclient info' output:
---8<---
andreas@dockstar % pwclient info 295268 > /tmp/test.out
Traceback (most recent call last):
File "/home/andreas/bin/pwclient", line 508, in <module>
main()
File "/home/andreas/bin/pwclient", line 471, in main
action_info(rpc, patch_id)
File "/home/andreas/bin/pwclient", line 242, in action_info
print("- %- 14s: %s" % (key, value))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 29: ordinal not in range(128)
--->8---
Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions