<i>format %A garbles negative, padded and infinite values</i> status still Pending with 3 other changes
by
.
D 2026-10-18T09:21:47.936
J icomment Another\soption,\sdone\sin\s[f5bb9702a9]:\sformat\sinfinities\sourselves\sinstead\sof\spassing\sthem\sto\sthe\sC\slibrary,\sas\sPython\sdoes.\smsvcrt\sgets\sthem\swrong\sfor\sall\sfloat\sconversions,\snot\sonly\s<tt>%A</tt>\s(<tt>1.#INF00e+000</tt>,\s<tt>1.#INF</tt>\seven\sfor\s<tt>%G</tt>).\sNow\sthey\sare\s<tt>inf</tt>\sor\s<tt>INF</tt>\s(for\s<tt>%A</tt>,\s<tt>%E</tt>,\s<tt>%G</tt>)\swith\sthe\ssign\sflags,\spadded\swith\sspaces,\sas\sC99\sspecifies;\sthe\soutput\son\sglibc\sand\sucrt\sdoes\snot\schange.\sformat-19.5\sis\sexact\sagain,\snew\stest\sformat-19.6.\sTested\swith\sa\smingw\smsvcrt\sbuild\son\sWindows\s11:\sformat.test\spasses,\sand\sfails\swithout\sthis\schange.\sNaN\scannot\sget\sthere,\sit\sis\srejected\searlier.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 2dff98e0791720bdde656d47762553c1089684a4
U serhiy.storchaka
Z ea80e48ab835f4dc417d66be83758d01