client/debian/packages-already-in-debian/rhn-client-tools/src/bin/rhn_check.py | 2 +-
client/rhel/rhn-client-tools/src/bin/rhn_check.py | 2 +-
client/tools/rhncfg/actions/script.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 2e78b67402369125a49b568c469689dda42a241d
Author: Jan Dobes <jdobes(a)redhat.com>
Date: Wed Jun 19 14:20:28 2013 +0200
957506 - unicode support for Remote Command scripts
diff --git
a/client/debian/packages-already-in-debian/rhn-client-tools/src/bin/rhn_check.py
b/client/debian/packages-already-in-debian/rhn-client-tools/src/bin/rhn_check.py
index 802b102..ef6609c 100755
--- a/client/debian/packages-already-in-debian/rhn-client-tools/src/bin/rhn_check.py
+++ b/client/debian/packages-already-in-debian/rhn-client-tools/src/bin/rhn_check.py
@@ -201,7 +201,7 @@ class CheckCli(rhncli.RhnCli):
""" Parse action data and returns (method, params)
"""
data = action['action']
parser, decoder = xmlrpclib.getparser()
- parser.feed(data)
+ parser.feed(data.encode("utf-8"))
parser.close()
params = decoder.close()
method = decoder.getmethodname()
diff --git a/client/rhel/rhn-client-tools/src/bin/rhn_check.py
b/client/rhel/rhn-client-tools/src/bin/rhn_check.py
index 1dcad22..6376a01 100755
--- a/client/rhel/rhn-client-tools/src/bin/rhn_check.py
+++ b/client/rhel/rhn-client-tools/src/bin/rhn_check.py
@@ -205,7 +205,7 @@ class CheckCli(rhncli.RhnCli):
""" Parse action data and returns (method, params)
"""
data = action['action']
parser, decoder = xmlrpclib.getparser()
- parser.feed(data)
+ parser.feed(data.encode("utf-8"))
parser.close()
params = decoder.close()
method = decoder.getmethodname()
diff --git a/client/tools/rhncfg/actions/script.py
b/client/tools/rhncfg/actions/script.py
index b729983..06e4d82 100644
--- a/client/tools/rhncfg/actions/script.py
+++ b/client/tools/rhncfg/actions/script.py
@@ -70,7 +70,7 @@ def _create_script_file(script, uid=None, gid=None):
# Tried a couple of times, failed; bail out raising the latest error
raise
sf = os.fdopen(fd, 'w')
- sf.write(script)
+ sf.write(script.encode("utf-8"))
sf.close()
if uid and gid:
Show replies by date