Skip to content
Tcl Source Code Artifact [c8e74e753c]
Login

Artifact [c8e74e753c]

Artifact c8e74e753c67a25db832bafd8a1902b604b25cad:

Ticket change [c8e74e753c] - Ticket [768852ffffffffff|768852ffff] <i>binary format a* $utf8_string</i> status still Open with 5 other changes by dkf on 2003-07-10 22:31:28.
D 2003-07-10T22:31:28
J assignee hobbs
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nBehaviour\sin\sthis\scase\sis\sundocumented\s(!)\sbut\ssince\sthe\s\nprimary\spurpose\sof\sthe\s[binary]\scommand\sis\sinteraction\swith\s\nthe\ssystem,\sI'm\stempted\sto\ssay\sthat\swe\swill\shandle\sthe\sa\sand\s\nA\sformats\susing\s[encoding\ssystem].\s\sThe\salternative\sis\sto\s\ndrop\sthe\shigh\sbytes\s(which\sis\swhat\shappens\snow)\sbut\sthat's\s\nnot\snice\sat\sall.\n\nSo,\sproposed\schange:\n\s\s[binary\sformat\sa*\s$str]\sto\suse\s[encoding\ssystem]\swhen\s\nconverting\sto\sa\sbyte-stream\s(which\sis\sinserted\sin\sthe\s\nresulting\sbytearray.)\s\sHence\swe\salso\suse\s[encoding\ssystem]\s\nwhen\sgoing\sthe\sother\sway\stoo.\n\nNet\sresult\sis\sthat\sthe\sattached\sscript\swill\snot\swork.\s\sHowever\s\nthe\sfollowing\swill:\n\s\sbinary\sscan\s[binary\sformat\sa*\s$foo]\sa*\sbar\nand\sthe\sstrings\swill\sbe\sequal\sIF\sALL\sTHE\sCHARACTERS\sARE\s\nREPRESENTABLE\sIN\sTHE\sSYSTEM\sENCODING\s(which\swill\sbe\s\nfine\smost\sof\sthe\stime.)\n\nAny\scomments\sJeff?\s\sIf\syou\sapprove,\sassign\sit\sback\sto\sme\sand\s\nI'll\sdevelop\sa\sfix.\n
J login dkf
J mimetype text/plain
J username dkf
K 768852ffffffffffffffffffffffffffffffffff
U dkf
Z d44fbff8bc7d9d9d1c9a1a7a1022aef2