Current heatclient doesn't handle properly outgoing encode process.
For resolving it, this patch implements a process to encode everything
going out of the client, for example, prints.
This patch used two new modules (gettextutils.py and strutils.py)
taken from oslo-incubator in order to use safe_encode() and
safe_decode().
Reviewed: https:/ /review. openstack. org/55984 github. com/openstack/ python- heatclient/ commit/ 2742b330102f913 5cefa17294bc7ac 6e0618dcd5
Committed: http://
Submitter: Jenkins
Branch: master
commit 2742b330102f913 5cefa17294bc7ac 6e0618dcd5
Author: chenxiao <email address hidden>
Date: Tue Nov 12 15:58:37 2013 +0800
Encode output for fixing UnicodeDecodeError
Current heatclient doesn't handle properly outgoing encode process.
For resolving it, this patch implements a process to encode everything
going out of the client, for example, prints.
This patch used two new modules (gettextutils.py and strutils.py)
taken from oslo-incubator in order to use safe_encode() and
safe_decode().
Closes-Bug: #1249233
Change-Id: Ia8c955a80d6812 6cd9c1fd791bda3 e331a2aa5c9