Hi INADA-san, Is it supported on macOS, FreeBSD, AIX, Android, etc.? My notes on platforms supported by Python: https://pythondev.readthedocs.io/platforms.html For example, xlc C compiler seems to be commonly used on AIX. I don't know how is its C99 support. Can we write an unit test somewhere to ensure that %zd works as expected? Victor Le 01/08/2019 à 14:01, Inada Naoki a écrit :
Hi,
snprintf() in VC 2010 had not supported "%zd" format. So we can not use it in PyOS_snprintf, PySys_WriteStdout, etc...
But VC supports "%zd" format since (at least) VC 2015. See https://docs.microsoft.com/en-us/cpp/c-runtime-library/format-specification-...
"%zd" is standard C99 feature. Can we assume it is portable for now?
Regards,
-- Night gathers, and now my watch begins. It shall not end until my death.