--- a/bindings/pyroot_legacy/src/PyROOT.h.old 2023-02-26 09:57:37.572520372 +0100 +++ b/bindings/pyroot_legacy/src/PyROOT.h 2023-02-26 09:57:58.270521746 +0100 @@ -106,7 +106,7 @@ // Support non-ASCII strings #if PY_VERSION_HEX >= 0x03030000 -#define PyROOT_PyUnicode_AsStringAndSize _PyUnicode_AsStringAndSize +#define PyROOT_PyUnicode_AsStringAndSize PyUnicode_AsUTFAndSize #endif // for 3.0 support (backwards compatibility, really)