Skip to content
Tcl Source Code Artifact [efb20b192b]
Login

Artifact [efb20b192b]

Artifact efb20b192b1c30a0d332c152266119ff5d426d4c:

Ticket change [efb20b192b] - Ticket [584603ffffffffff|584603ffff] <i>infinite loop in &#39;encoding convertfrom&#39;</i> status still Open with 4 other changes by vincentdarley on 2002-07-23 23:32:50.
D 2002-07-23T23:32:50
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nIt\sis\sdefinitely\swhen\sthe\ssystem\stries\sto\soutput\sthe\sresult\s\nto\sconsole\sthat\sthe\sloop\soccurs,\sbecause\sthis:\n\nencoding\sconvertfrom\sidentity\s\\342\s;\sset\sa\s1\n\njust\shappily\sprints\s'1'\sin\sthe\sconsole,\sno\sinfinite\sloop,\sno\s\nerror,\sno\sproblem!\s\sInterestingly,\s'puts\s\\342'\sand\s'set\sa\s\n\\342'\swork\sfine\sfor\sme.\s\sI'm\sinterested\sto\ssee\sin\s\nWriteChars\sthis\sblock,\swhich\sshows\sthere\swas\sa\s\ndifferent\sbug\swhich\scaused\san\sinfinite\sloop:\n\n\s\s\s\s/*\sFix\sfor\sSF\s#506297,\sreported\sby\sMartin\s\nForssen\n\s\s\s\s\s*\s<[email protected]>.\n\s\s\s\s\s*\n\s\s\s\s\s*\sThe\sencoding\schosen\sin\sthe\sscript\s\nexposing\sthe\sbug\swrites\sout\n\s\s\s\s\s*\sthree\sintro\scharacters\swhen\s\nTCL_ENCODING_START\sis\sset,\sbut\sdoes\n\s\s\s\s\s*\snot\sconsume\sany\sinput\sas\s\nTCL_ENCODING_END\sis\scleared.\sAs\ssome\n\s\s\s\s\s*\soutput\swas\sgenerated\sthe\senclosing\sloop\s\ncalls\sUtfToExternal\n\s\s\s\s\s*\sagain,\sagain\swith\sSTART\sset.\sThree\smore\s\ncharacters\sin\sthe\sout\n\s\s\s\s\s*\sand\sstill\sno\suse\sof\sinput\s...\sTo\sbreak\sthis\s\ninfinite\sloop\swe\n\s\s\s\s\s*\sremove\sTCL_ENCODING_START\sfrom\sthe\s\nset\sof\sflags\safter\sthe\sfirst\n\s\s\s\s\s*\scall\s(no\scondition\sis\srequired,\sthe\slater\s\ncalls\sremove\san\sunset\n\s\s\s\s\s*\sflag,\swhich\sis\sa\sno-op).\sThis\scauses\sthe\s\nsubsequent\scalls\sto\n\s\s\s\s\s*\sUtfToExternal\sto\sconsume\sand\sconvert\s\nthe\sactual\sinput.\n\s\s\s\s\s*/\n\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 584603ffffffffffffffffffffffffffffffffff
U vincentdarley
Z c34c3381c43dbb1b218cce09ff753223