summaryrefslogtreecommitdiffstats
path: root/sip/qt/qimage.sip
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-01-04 11:15:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-01-04 16:37:05 +0900
commitd31a084fc83d47eef6c6eb3aac76989da9692853 (patch)
tree2a412325bd788cd505bb5cdad90ac498a004e405 /sip/qt/qimage.sip
parent30954661009ddfb9db2e9daed3bfbd594bb20441 (diff)
downloadpytqt-d31a084fc83d47eef6c6eb3aac76989da9692853.tar.gz
pytqt-d31a084fc83d47eef6c6eb3aac76989da9692853.zip
Use utf8 instead of latin1/ascii as default. Address pyuic compatibility with python3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'sip/qt/qimage.sip')
-rw-r--r--sip/qt/qimage.sip6
1 files changed, 3 insertions, 3 deletions
diff --git a/sip/qt/qimage.sip b/sip/qt/qimage.sip
index b1628c5..9fb7907 100644
--- a/sip/qt/qimage.sip
+++ b/sip/qt/qimage.sip
@@ -432,15 +432,15 @@ const char **PyTQt_qt_ListToArray(PyObject *lst)
for (int i = 0; i < nstr; ++i)
{
PyObject *item = PyList_GetItem(lst, i);
- const char *item_ascii = sipString_AsASCIIString(&item);
+ const char *item_utf8 = sipString_AsUTF8String(&item);
- if (item_ascii == NULL)
+ if (item_utf8 == NULL)
{
sipFree((void *)str);
return NULL;
}
- *sp++ = item_ascii;
+ *sp++ = item_utf8;
}
return str;