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-syntax-printf-and-wprintf-functions?view=vs-2015
"%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.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/QVSBYYICHYC3IFITF4QNMGIOLOGAQS6I/