<i>test expr-22.8 should not be knownBug</i> status still Open with 4 other changes
by
.
D 2002-07-22T23:30:42
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nThis\sappears\sto\strace\sback\sto\sa\ndifference\sof\sopinion\sabout\show\nstrtod()\sis\ssupposed\sto\sbe\simplemented.\nIn\sparticular,\swhen\sgiven\sthe\s4\sbytes\n'I',\s'n',\s'f',\sand\s'\\0',\show\smany\sbytes\nshould\sstrtod\sclaim\smake\sup\sthe\nvalid\sdouble\svalue?\s\sThus\swhat\nshould\sthe\sendPtr\sbe\sset\sto?\n\nSolaris\sstrtod()\sclaims\sthat\s'\\0'\sis\npart\sof\sthe\sstring\srep\sof\sthe\sdouble,\nso\sit\ssets\sendPtr\sto\spoint\sone\spast\nthe\snull.\s\sLinux\sstrtod()\sclaims\sthat\n'\\0'\sis\snot\spart\sof\sthe\sdouble,\sso\nit\ssets\sendPtr\sto\spoint\sat\sthe\s'\\0'.\n\nLater\sthat\scharacter\sgets\sturned\nback\sinto\s'}'\slike\sit\swas\sbefore.\n\nIt\sseems\svery\sstrange\sto\sme\sthat\nthe\sSolaris\sstrtod()\shandles\sthe\nstring\s"NaN"\sdifferently,\sand\sdoes\nnot\sclaim\sthe\strailing\s'\\0'\sfor\sit.\n\nFWIW,\sthe\scompat/strtod.c\soffered\nwith\sthe\sTcl\ssources\srecognizes\nneither\sInf\snor\sNan.\n\nFinally,\snote\sthat\son\sLinux,\sthe\ntest\sexpr-22.8\sfails\sfor\sa\sdifferent\nreason.\s\sThere,\sthe\sstring\s"Inf"\nis\shappily\sconverted\sto\sa\slegal\ndouble\sby\sTcl_GetDoubleFromObj()\non\sline\s3112\sof\stclExecute.c.\s\sSo,\nTcl\sgoes\sahead\sand\sperforms\sthe\n1\s/\sInf\scalculation\sand\sgets\sthe\ncorrect\sanswer:\s0.0\n
J login dgp
J mimetype text/plain
J username dgp
K 584825ffffffffffffffffffffffffffffffffff
U dgp
Z 14eb427ed88bd5411e058e2181e8d5d2