Skip to content
Tcl Source Code Artifact [3c1faa6df2]
Login

Artifact [3c1faa6df2]

Artifact 3c1faa6df2a3a693784bd5b8d7c74d19a68aa59b:

Ticket change [3c1faa6df2] - Ticket [768852ffffffffff|768852ffff] <i>binary format a* $utf8_string</i> status still Open with 4 other changes by samoc on 2003-07-11 08:46:49.
D 2003-07-11T08:46:49
J icomment Logged\sIn:\sYES\s\nuser_id=737265\n\nThe\smanual\spage\ssays\s"a:\sStores\sa\scharacter\sstring..."\sand\sit\ssays\n"If\scount\sis\s*,\sthen\sall\sof\sthe\sbytes\sin\sarg\swill\sbe\sformatted."\nIn\sTcl\sstrings\sare\sUTF-8,\sif\sall\sthe\sbytes\sare\sgoing\sto\sbe\sformatted,\s\nthen\sthey\sall\sneed\sto\send\sup\sin\sthe\sresult\sstring,\swithout\sany\s\nconversion\shappening.\nI\sthink\sthe\sUTF-8\sstring\sshould\sbe\scopied\sverbatim\sinto\sthe\s"binary\s\nformat"\sresult.\sThis\sseems\slike\sa\ssensible\sbehaviour\ssince\sit\s\npreserves\sthe\scurrent\sbehaviour\sfor\splain\sascii\sstrings.\n[binary\sformat\sa*\s$x]\s==\s$x\sshould\shold\sfor\sany\svalue\sof\sx.\n\n(I\simagine\sthe\scurrent\sbehaviour\sfor\s"a7"\swould\sbe\sunpredictable\s\nas\swell\sgiven\sthat\sthe\sman\spage\stalks\sabout\sbytes\snot\scharacters.)\n\nSam\n\nP.S.\sI\sam\sthe\soriginal\ssubmitter.\n\nP.P.S.\sWe\shave\sworked\sarround\sthe\sbug\sby\schanging:\n\s\s\s\sset\sr\s\s[binary\sformat\siia*i\s$i\s$j\s$s\s$k]\nto\n\s\s\s\sset\sr\s[binary\sformat\sii\s$i\s$j]\n\s\s\s\sappend\sr\s$s\n\s\s\s\sappend\sr\s[binary\sformat\si\s$k]\n\nI\sthink\sthat\sthe\s"a"\sencoding\sshould\seither\sbe\sremoved\s(since\sit\s\ndoes\sno\sformatting\sanyway)\sor\sbe\schanged\sto\sbehave\sas\sdescribed\s\nabove.\n
J login samoc
J mimetype text/plain
J username samoc
K 768852ffffffffffffffffffffffffffffffffff
U samoc
Z 1a1b60da4901ecfdd047ba947c531be4