.
D 2000-10-26T00:56:35
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4101\sBug\nVersion:\s8.3b2\nSubmitDate:\s'2000-01-28'\nLastModified:\s'2000-01-28'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sWindows\s98\nMachine:\sPentiumII\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-01-28'\n\n\nName:\nEnrico\sCarniani\n\nCustomShell:\nNo\smodifications.\sI'm\susing\sthe\sTk\sextensions\sover\sa\suser\sdefined\sC\sapplication\sbut\sit\sbehaves\sthe\ssame\sway\swith\sthe\sgiven\sshort\sscript.\n\nComments:\nIn\s8.2,\sseems\sto\sinterpret\s\\r\sas\sit\swere\sa\sline\sterminator\sinstead\sof\sa\n\s\s\s\sblank\scharacter\sbut\sdoes\snot\scrash\sor\shang\sthe\ssystem.\n\nReproducibleScript:\nset\sf\s[open\s"dostext.tcl"\sr]\nfconfigure\s$f\s-translation\sbinary\nset\sDOStext\s[read\s$f]\neval\s"$DOStext"\n\nNote:\nDOStext\sis\sa\stext\sin\sDOS\sformat\s(i.e.\severy\sline\sis\sterminated\swith\s\\n\\r)\sand\nhas\sbeen\sread\sby\sa\sC\sprogram\s(here\semulated\sby\sfconfigure).\nIf\sDOStext\scontains\sthe\sfollowing\s2\slines:\n\nset\sTRADEMARK\s\s"Telvox\sTeleinformatica"\n\ntcl\slibraries\swould\sissue\san\serror\son\sthe\sfirst\sline\s(in\sv8.2)\sor\soccasionally\nhang\sthe\ssystem\s(v\s8.3b2).\nObviously\sif\sDOStext.tcl\scode\sis\sexecuted\swith\swish\sor\stclsh,\sit\sworks.\nThe\strick\sof\ssetting\sbinary\stranslation\shas\sbeen\smade\sto\smime\sto\sbehaviour\sof\sa\sbrutal\sbinary\sfread\sin\sC\scode\s(that\sis,\swhat\sactually\shappens\swith\smy\sinit\sapplication\sand\scannot\sbe\schanged\sbecause\sTCL\ssources\sare\scrypted).\n\nObservedBehavior:\nIn\s8.3b2,\ssometimes\shangs\sor\scrashes\sthe\ssystem.\n\nDesiredBehavior:\nJust\sworking.\n\n\n\nResponded\sto\suser\son\snewsgroup:\n\nI\scannot\sget\sthis\sto\scrash\son\sWindows\seven\swhen\sI\sdo:\ntime\s{catch\s{eval\s"$DOStext"}}\s10000\n\nThis\sis\sreally\snot\san\serror\sfor\sTcl,\sbecause\sby\sreading\sin\sthe\sfile\nas\sbinary,\syou\scause\sthe\sstring\sto\sactually\sbe:\n\nset\sTRADEMARK\s\\[\\r][\\n]\s\s\s\s"Telvox\sTeleinformatica"\nor\sstraight\sas\sa\sstring:\nset\sTRADEMARK\s\\\\\\r\\n\s\s\s\s"Telvox\sTeleinformatica"\n\nwhich\sis\sequivalent\sto:\n\nset\sTRADEMARK\s"\\r"\n"Telvox\sTeleinformatica"\n\nThis\sis\sall\sperfectly\scorrect\saccording\sto\sthe\ssyntax\sof\sthe\nlanguage.\s\sI\sguess\sthe\sbinary\stranslation\sis\snecessary\sto\shandle\ncrypted\ssources,\sbut\sthen\syou\salso\shave\sto\smap\s{\\\\r\\n}\sto\s{\\\\n\s}\nin\sthe\soutput.\s\sThat\swill\smake\severything\shappy\sagain.\n\nI'm\snot\ssure\swhy\syou\swould\sget\sa\scrash,\sbut\sthe\sequivalent\sstring\nyou\sgive\sis\ssuch\sa\sbase\scase,\sthat\sthe\shang\smust\sactually\sfrom\nfrom\ssomewhere\selse.\s\n--\s01/28/2000\shobbs
J foundin obsolete:\s8.3b2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title bad\s"eval"\sbehaviour\son\strailing\s"\\"
J type Bug
K 218351ffffffffffffffffffffffffffffffffff
U nobody
Z 7d22fdfc813d82639ac63beefb7ac1fd