summaryrefslogtreecommitdiff
path: root/python/rpmmacro-py.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/rpmmacro-py.c')
-rw-r--r--python/rpmmacro-py.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmmacro-py.c b/python/rpmmacro-py.c
index 3cb1a51f5..d8a365547 100644
--- a/python/rpmmacro-py.c
+++ b/python/rpmmacro-py.c
@@ -52,7 +52,7 @@ rpmmacro_ExpandMacro(PyObject * self, PyObject * args, PyObject * kwds)
if (rpmExpandMacros(NULL, macro, &str, 0) < 0)
PyErr_SetString(pyrpmError, "error expanding macro");
else
- res = Py_BuildValue("s", str);
+ res = utf8FromString(str);
free(str);
}
return res;