diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-04 11:15:00 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-04 16:37:05 +0900 |
commit | d31a084fc83d47eef6c6eb3aac76989da9692853 (patch) | |
tree | 2a412325bd788cd505bb5cdad90ac498a004e405 /sip/qt/qobject.sip | |
parent | 30954661009ddfb9db2e9daed3bfbd594bb20441 (diff) | |
download | pytqt-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/qobject.sip')
-rw-r--r-- | sip/qt/qobject.sip | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sip/qt/qobject.sip b/sip/qt/qobject.sip index df82e56..b6e0387 100644 --- a/sip/qt/qobject.sip +++ b/sip/qt/qobject.sip @@ -369,11 +369,11 @@ public: } else { - const char *source = sipString_AsLatin1String(&a0); + const char *source = sipString_AsUTF8String(&a0); if (source) { - sipRes = new TQString(QString::fromLatin1(source)); + sipRes = new TQString(QString::fromUtf8(source)); Py_DECREF(a0); } else @@ -402,11 +402,11 @@ public: } else { - const char *source = sipString_AsLatin1String(&a0); + const char *source = sipString_AsUTF8String(&a0); if (source) { - sipRes = new TQString(TQString::fromLatin1(source)); + sipRes = new TQString(TQString::fromUtf8(source)); Py_DECREF(a0); } else |