Skip to content
Tcl Source Code Artifact [27f457dd13]
Login

Artifact [27f457dd13]

Artifact 27f457dd13bd11383a15651c5e9c2bcbc947599b:

Manifest of check-in [27f457dd13] - * generic/tclGet.c (Tcl_GetDouble): Added additional conditions to error test (previously only errno was checked, but the return value of strtod() should be checked as well). [Bug: 4118]. * tests/exec.test: Added test for proper conversion of UTF data when used with "<< $dataWithUTF" on exec's. * unix/tclUnixPipe.c (TclpCreateTempFile): Added Tcl_UtfToExternalDString call, so that if there is UTF content in the string it will be properly converted to the system encoding before being written [Bug: 4030]. (TclpCreateTempFile): Added a check on the return value of tmpnam; some systems (Linux, for example) will start to return NULL after tmpnam has been called TMP_MAX times; not checking for this can have bad results (overwriting temp files, core dumps, etc.) by ericm on 2000-03-31 19:39:41.
B 36c0007d3febaff6e2e098f6a89f9c2a8db40ce2
C *\sgeneric/tclGet.c\s(Tcl_GetDouble):\sAdded\sadditional\sconditions\sto\nerror\stest\s(previously\sonly\serrno\swas\schecked,\sbut\sthe\sreturn\nvalue\sof\sstrtod()\sshould\sbe\schecked\sas\swell).\s\s[Bug:\s4118].\n\n*\stests/exec.test:\sAdded\stest\sfor\sproper\sconversion\sof\sUTF\sdata\nwhen\sused\swith\s"<<\s$dataWithUTF"\son\sexec's.\n\n*\sunix/tclUnixPipe.c\s(TclpCreateTempFile):\sAdded\nTcl_UtfToExternalDString\scall,\sso\sthat\sif\sthere\sis\sUTF\scontent\sin\nthe\sstring\sit\swill\sbe\sproperly\sconverted\sto\sthe\ssystem\sencoding\nbefore\sbeing\swritten\s[Bug:\s4030].\n(TclpCreateTempFile):\sAdded\sa\scheck\son\sthe\sreturn\svalue\sof\stmpnam;\nsome\ssystems\s(Linux,\sfor\sexample)\swill\sstart\sto\sreturn\sNULL\safter\ntmpnam\shas\sbeen\scalled\sTMP_MAX\stimes;\snot\schecking\sfor\sthis\scan\nhave\sbad\sresults\s(overwriting\stemp\sfiles,\score\sdumps,\setc.)\n
D 2000-03-31T19:39:41
F ChangeLog f69c91140c37082da0747d94692e2b005e05e642
F generic/tclGet.c 9321d9ee826b7d8ae884c7b2f54ba59f26d1e038
F tests/exec.test 0f0547bff92a43bd274af3f1927b143b51801240
F unix/tclUnixPipe.c d3c112369a99426e6f126ab2734750bcdff9944c
P 36c0007d3febaff6e2e098f6a89f9c2a8db40ce2
U ericm
Z e4af0cf196e647764b4596c19314fe27