From 3bb933237662284a592794b20c15496fbeac1e6e Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 4 Mar 2011 09:04:18 +0100 Subject: [PATCH] =?UTF-8?q?[webui]=20Fix=20J=C3=BCrgen's=20Unicode=20issue?= =?UTF-8?q?=20and=20stupid=20default=20value=20assignment.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- osc/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/core.py b/osc/core.py index 71d4f911..7c20618c 100644 --- a/osc/core.py +++ b/osc/core.py @@ -3464,7 +3464,7 @@ def clone_request(apiurl, reqid, msg=None): def create_submit_request(apiurl, src_project, src_package, dst_project=None, dst_package=None, - message=None, orev=None, src_update=None): + message="", orev=None, src_update=None): import cgi options_block="" @@ -3494,7 +3494,7 @@ def create_submit_request(apiurl, orev or show_upstream_rev(apiurl, src_project, src_package), targetxml, options_block, - cgi.escape(message or "")) + cgi.escape(unicode(message, "utf8"))) u = makeurl(apiurl, ['request'], query='cmd=create') f = http_POST(u, data=xml)