From d2ed3e7813b7fb731e4f6bda9207dba099b48494 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Thu, 12 Nov 2020 10:41:58 +0100 Subject: pyside6: Fix Limited API violation in QtQml This patch replaces an unsupported function. No idea if there are more problems, since I have to create a new macOS build of the dev branch, first. Change-Id: I3ce59d5585410109a776cef19879ae835f6cce5d Reviewed-by: Friedemann Kleint --- sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp') diff --git a/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp b/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp index 0d4cea294..cb9ed6309 100644 --- a/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp +++ b/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp @@ -665,7 +665,7 @@ static std::string getGlobalString(const char *name) if (globalVar == nullptr || !PyUnicode_Check(globalVar)) return ""; - const char *stringValue = PyUnicode_AsUTF8(globalVar); + const char *stringValue = _PepUnicode_AsString(globalVar); return stringValue != nullptr ? stringValue : ""; } -- cgit v1.2.3