GRASS ctypes fail with Python 3.7.6+
|Reported by:||mmetz||Owned by:|
GRASS ctypes generated with the GRASS internal ctypes generator are no longer accepted by Python 3.7.6+, see also ctypesgen issue 77. Tested with Debian testing (Python 3.7.6) and Alpine edge (Python 3.8.1). Both distro versions are development versions, but they use released Python versions.
The errors are that a union is no longer accepted as a function argument, affecting e.g. the class string, and that strings consisting of of any number of characters terminated by the '\0' character are sometimes truncated to the first character.
Unfortunately, the main maintainer of ctypesgen does not test python versions > 3.6.
We need to fix the GRASS-internal ctypes generator to work with Python < 3.7.6 as well as Python >= 3.7.6.