Skip to content
Tcl Source Code Artifact [761df7fbff]
Login

Artifact [761df7fbff]

Artifact 761df7fbffcc36d8c41ba765130e3fb7d0e2a5da:

Ticket change [761df7fbff] - New ticket [218438ffffffffff|218438ffff] <i>Control-Z in string generates incorrect error on Windows</i>. by nobody on 2000-10-26 00:57:36.
D 2000-10-26T00:57:36
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s6208\sBug\nVersion:\s8.3.1\nSubmitDate:\s'2000-09-05'\nLastModified:\s'2000-09-05'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sWindows\s98\nOSVersion:\sWindows\s98\nMachine:\sToshiba\slaptop\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-09-05'\n\n\nName:\nMace\sMoneta\n\nComments:\nThis\stook\sa\svery\slong\stime\sto\sisolate,\sdue\sto\sthe\smisleading\serror\n\s\s\s\smessage,\ssince\sthe\sactual\scode\sfor\sthe\sroutine\swas\sVERY\slarge.\s\sWhile\n\s\s\s\snot\sa\sserious\sproblem\s(it\sis\seasily\sworked\saround),\sit\sis\svery\spainful\n\s\s\s\sto\sdebug.\n\nReproducibleScript:\nThe\sfollowing\sscript\sexecutes\scorrectly\son\sLinux/Uniz,\sbut\sgenerates\sa\smisleading\serror\son\sWindows98.\s\sNote\sthat\sthe\scomparison\sstring\scontains\sonly\sa\scontrol-Z\scharacter\s("\\032"):\n\nproc\s{sample}\s{}\s{\n\n\s\s\sif\s{$cmd\s==\s"^Z"}\s{\n\s\s\s\s\s\sset\stemp_cmd\s$cmd\n\s\s\s}\n}\n\nputs\s"hello"\n\nObservedBehavior:\nOn\sUnix/Linux,\sthe\soperation\sis\scorrect:\n\n$\stclsh\stcl.bug\nhello\n\nHowever\son\sWindows98,\sa\smisleading\serror\sis\sdisplayed:\n\nC:\\My\sDocuments\\TCL>tclsh83\stcl.bug\nmissing\sclose-brace\n\s\s\s\swhile\sexecuting\n"proc\s{sample}\s{}"\n\s\s\s\s(file\s"tcl.bug"\sline\s1)\n\nDesiredBehavior:\nI\sexpect\sthe\sWindows\sversion\sto\sexecute\sthe\ssame\sas\sthe\sUnix\sversion\swhen\sreferencing\scontrol\scharacters\sin\squoted\sstrings.\n\n\n\n^Z\shas\sbeen\sthe\sEOF\schar\ssince\sages\son\sWindows,\sand\sit\sis\sVERY\sIMPORTANT\nTO\sNOTE\sthat\sTcl8.4\sextends\sthat\sfact\sto\sUnix/Mac\sas\swell\sby\sdefault.\nThis\senables\svery\sinteresting\sapps\slike\sScripted\sDocuments\s(see\sTclKit\nby\sJean-Claude\sWippler),\sand\sstraightens\sout\sthe\scross-platform\nirregularity.\n\nYou\scan\suse\sthe\s"\\032"\soctal\sencoding\smore\ssafely,\sor\sthe\salternative\n\\u001a\sunicode\sencoding\sstyle.\s\n--\s09/05/2000\shobbs
J foundin obsolete:\s8.3.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 37.\sFile\sSystem
J title Control-Z\sin\sstring\sgenerates\sincorrect\serror\son\sWindows
J type Bug
K 218438ffffffffffffffffffffffffffffffffff
U nobody
Z 27b3fa97c5bc72c1a2ebcc8035d8c383