diff options
author | Holger Weiß <holger@zedat.fu-berlin.de> | 2011-05-11 14:51:29 +0200 |
---|---|---|
committer | Holger Weiß <holger@zedat.fu-berlin.de> | 2011-05-11 14:51:29 +0200 |
commit | 661405723930c64ca20fbb8191b6772cef919ea6 (patch) | |
tree | da6eb018851a1e8a5264633f836181186ec38262 /src/sbin/bcfg2 | |
parent | a7057ddac01f3e3a128448d806f4fb4e2e4876f6 (diff) | |
download | bcfg2-661405723930c64ca20fbb8191b6772cef919ea6.tar.gz bcfg2-661405723930c64ca20fbb8191b6772cef919ea6.tar.bz2 bcfg2-661405723930c64ca20fbb8191b6772cef919ea6.zip |
bcfg2: Convert specification from Unicode to UTF-8
The client receives the configuration specification as a Unicode string
and then hands it over to the XML() function, which expects a UTF-8
encoded string. Therefore, the configuration specification is now
converted to UTF-8.
Resolves ticket #1009.
Diffstat (limited to 'src/sbin/bcfg2')
-rwxr-xr-x | src/sbin/bcfg2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 7f7d8f5c6..996d773ff 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -243,7 +243,7 @@ class Client: raise SystemExit(1) try: - rawconfig = proxy.GetConfig() + rawconfig = proxy.GetConfig().encode('UTF-8') except xmlrpclib.Fault: self.logger.error("Failed to download configuration from Bcfg2") raise SystemExit(2) |