Skip to content
Tcl Source Code Artifact [472ed9835f]
Login

Artifact [472ed9835f]

Artifact 472ed9835fb7b08d019e89c00c9e922ff0e7c25c8d1063f8c2c7fc72bf608787:

Ticket change [472ed9835f] - New ticket [5808081213891824|5808081213] <i>&quot;string length&quot; converts bytearrays to strings when traced</i>. by tomkiti on 2017-11-22 15:44:55.
D 2017-11-22T15:44:55.305
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment When\s"string\slength"\sis\straced,\sit\sconverts\sa\sbytearray\sargument\sto\sa\sstring.\sThis\shappens\swhen\sthe\sthe\strace\soperation\sis\seither\senterstep\sor\sleavestep,\sbut\snot\senter\sor\sleave.\sThis\sbehavior\sdoes\snot\soccur\sin\sTcl\s8.5.\r\n\r\nScript:\r\n\r\n\s\s\s\sproc\sp\s{}\s{\r\n\s\s\s\s\s\s\s\sset\sx\s[binary\sformat\sx]\r\n\s\s\s\s\s\s\s\sputs\s[::tcl::unsupported::representation\s$x]\r\n\s\s\s\s\s\s\s\sstring\slength\s$x\r\n\s\s\s\s\s\s\s\sputs\s[::tcl::unsupported::representation\s$x]\r\n\s\s\s\s}\r\n\s\s\s\s\r\n\s\s\s\sproc\straceProc\s{args}\s{}\r\n\s\s\s\s\r\n\s\s\s\strace\sadd\sexecution\sp\senterstep\straceProc\r\n\s\s\s\sp\r\n\r\nOutput:\r\n\s\s\s\svalue\sis\sa\sbytearray\swith\sa\srefcount\sof\s2,\sobject\spointer\sat\s00000000003847A0,\sinternal\srepresentation\s0000000000399860:0000000000384740,\sstring\srepresentation\s"\s"\r\n\s\s\s\svalue\sis\sa\sstring\swith\sa\srefcount\sof\s2,\sobject\spointer\sat\s00000000003847A0,\sinternal\srepresentation\s000000000039AF40:0000000000384740,\sstring\srepresentation\s"\s"
J foundin 8.6.7
J is_private 0
J login tomkiti
J priority 5\sMedium
J private_contact 1c57e67924247fd7926e89348f266c081ec57db2
J resolution None
J severity Minor
J status Open
J submitter tomkiti
J subsystem 12.\sByteArray\sObject
J title "string\slength"\sconverts\sbytearrays\sto\sstrings\swhen\straced
J type Bug
K 580808121389182456a680e5323ea346ac30e567
U tomkiti
Z ccac5c5954e561a400a2a6faae80e184