Skip to content
Tcl Source Code Artifact [31a352537c]
Login

Artifact [31a352537c]

Artifact 31a352537cc7b3a58c86f199ece544fbbc4a4ea8:

Ticket change [31a352537c] - Ticket [768852ffffffffff|768852ffff] <i>binary format a* $utf8_string - needs u/U</i> status still Open with 4 other changes by samoc on 2003-07-18 07:32:51.
D 2003-07-18T07:32:51
J icomment Logged\sIn:\sYES\s\nuser_id=737265\n\nIt\sseems\sto\sme\sthat\sthere\sis\sa\ssimple\ssolution\sto\sthis\sproblem.\n\nThe\spurpose\sof\sbinary\sformat\sis\sto\sconvert\snumeric\svalues\sinto\nspecified\sbinary\srepresentations.\s"a"\sand\s"A"\sare\sthe\sonly\stwo\ntypes\sthat\sdon't\sconvert\ssome\skind\sof\snumeric\svalue.\sThey\sare\nalso\suniqie\sin\sthat\sthey\sin\sfact\sdo\sno\sconversion\sat\sall,\sthey\sjust\ndump\sa\scharacter\sstring\sinto\sthe\soutput.\nPerhaps\sthe\sreason\sthat\sno\selegant\ssolution\spresents\sitself\shere\sis\nthat\scharacter\sstrings\shave\sno\splace\sin\sbinary\sformat.\n\nI\ssuggest\ssimply\sdepricating\s"a"\sand\s"A".\sAs\sit\sstands\sthey\sare\snot\nbackwards\scompatible\sanyway\ssince\sthey\sdon't\swork\swith\smulti-\nbyte\scahracters,\sand\sTcl\sis\ssupposed\sto\ssupport\sthese\ntransparently.\nIf\syou\shave\scode\slike\sthis\n\s\sset\sfoo\s[binary\sformat\siai\s$x\s$s\s$y]\ndo\sthis\sinstead:\n\s\sset\sfoo\s[binary\sformat\si\s$x]$s[binary\sformat\si\s$y]\nand\sif\sthe\s$s\sdosn't\scome\sout\sthe\sway\syou\swant,\suse\sthe\susual\nencoding\scommands\sto\sdeal\swith\sit.\n\nIf\s"a"\sand\s"A"\sare\sto\sbe\skept\sI\swould\ssuggest\sthat\sthey\sshould\ntake\sthe\sstring\sverbatim\sin\sits\s_current_\sencoding.\s(not\sthe\ssystem\nencoding)\sSo\sif\syou\swant\ssomthing\selse\syou\scould\sdo:\n\s\sset\sfoo\s[binary\sformat\siai\s$x\s[encoding\sconvertto\sfoo\s$a]\s$y]\n\nSam\n
J login samoc
J mimetype text/plain
J username samoc
K 768852ffffffffffffffffffffffffffffffffff
U samoc
Z df24263dcbe1808f71ff704d22437caf