sigil: patch for Python 3.11
This commit is contained in:
parent
9770c1b77c
commit
b81384a2a6
1 changed files with 11 additions and 0 deletions
11
srcpkgs/sigil/patches/python-3.11.patch
Normal file
11
srcpkgs/sigil/patches/python-3.11.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/src/EmbedPython/EmbeddedPython.cpp
|
||||||
|
+++ b/src/EmbedPython/EmbeddedPython.cpp
|
||||||
|
@@ -480,7 +480,7 @@ QVariant EmbeddedPython::PyObjectToQVari
|
||||||
|
|
||||||
|
if (kind == PyUnicode_1BYTE_KIND) {
|
||||||
|
// latin 1 according to PEP 393
|
||||||
|
- res = QVariant(QString::fromLatin1(reinterpret_cast<const char *>PyUnicode_1BYTE_DATA(po), -1));
|
||||||
|
+ res = QVariant(QString::fromLatin1(reinterpret_cast<const char *>(PyUnicode_1BYTE_DATA(po)), -1));
|
||||||
|
|
||||||
|
} else if (kind == PyUnicode_2BYTE_KIND) {
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
Loading…
Add table
Add a link
Reference in a new issue