Skip to content
Tcl Source Code Artifact [6f1a2399b6]
Login

Artifact [6f1a2399b6]

Artifact 6f1a2399b6b1b10586641e19d1d4537ae1652912:

Ticket change [6f1a2399b6] - New ticket [1402763fffffffff|1402763fff] <i>bytearray object converted to string on searched by regexp</i>. by nobody on 2006-01-11 11:09:05.
D 2006-01-11T11:09:05
J assignee dkf
J cmimetype text/plain
J comment I\sconsider\sthe\sfollowing\sa\sbug\s(in\sversion\s8.4.11)\n\nset\sfd\s[open\s[select_file]]\n\n#\sAlthough\sirrelevant,\sin\sthe\sactual\stest\scase\sthe\sfile\nselected\sis\sa\spdf\sfile.\n\nfconfigure\s$fd\s-encoding\sbinary\s-translation\sbinary\nset\sinp\s[read\s$fd]\n\n#\sHere\sthe\stype\s(and\sinternal\srepresentation)\sof\s'inp'\nis\s'bytearray'\sas\sit\sindeed\sshould\sbe.\n\nregexp\s--\s"stream\\x0d\\x0a(.+?)\\x0d\\endstream"\s$inp\sx\sfrag\n\n#\sNow\sthe\sTcl_Obj\srecord\sthat\s'inp'\srefers\sto\sis\sthe\nsame\sas\sabove\sbut\sthe\stype\snow\sis\n#\s'string'\sand\sthe\svalue\sof\sboth\sthe\s'bytes'\sand\sthe\n'internalRep'\spointer\sis\sdifferent\sfrom\n#\sits\sprevious\svalue.\sThe\sstring\sthe\slatter\spoints\sto\nseems\sto\sbe\sin\sUCS-16\sform.\n#\sI\sdid\snot\scheck\swhether\sthe\sstring\svalue\shad\sbeen\nchanged.\sIf\snot\swhy\swas\sit\snecessary\sto\scopy?\n\nJoe\sNémeth\s(NJG\son\swiki.tcl.tk)
J foundin obsolete:\s8.4.12
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 12.\sByteArray\sObject
J title bytearray\sobject\sconverted\sto\sstring\son\ssearched\sby\sregexp
J type Bug
K 1402763fffffffffffffffffffffffffffffffff
U nobody
Z d6606c488b45ed9930bae392c7ff03b7