Skip to content
Tcl Source Code Artifact [19ffdb7432]
Login

Artifact [19ffdb7432]

Artifact 19ffdb743293e485e189121058cad70f3b1e1f7a6f12ca7ec408c47397fc0b96:

Ticket change [19ffdb7432] - New ticket [165b10396273d81c|165b103962] <i>Error message of &quot;TclGetBytesFromObj&quot; may include arbitrary character</i>. by oehhar on 2022-03-15 10:50:56.
D 2022-03-15T10:50:56.177
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment Hi\sJan,\sDon,\sthank\syou\sfor\syour\swork\son\spropper\sbytearrays.\r\nThis\sis\sgreat\swork.\r\n\r\nMay\sI\sask\sfor\sa\schange?\r\nPlease\smake\ssure,\sthat\serror\smessages\sonly\scontain\sprintable\sASCII.\r\nYou\snever\sknow,\swhat\shappens\swith\serror\smessages.\sThey\sare\swritten\sto\sthe\sconsole,\slogs\sor\sdata\sbases\sand\sare\sset\sover\sthe\snetwork.\sThus,\sarbitrary\scontents\smay\slead\sto\sstrange\sbugs.\sYou\snever\sknow\sthe\sencoding\sof\sthe\starget.\r\n\r\nHere\sis\san\sexample\sof\scurrent\smain\sbranch,\swhere\s*TclGetBytesFromObj*\sis\scalled\swith\sthe\slast\sargument\sof\sthe\sfollowing\scommand.\s*TclGetBytesFromObj*\sgenerates\sthis\serror\smessage:\r\n\r\n<verbatim>\r\n%\sencoding\sconvertfrom\siso8859-1\s\\u0141\r\nexpected\sbyte\ssequence\sbut\scharacter\s0\swas\s'Ł'\s(U+000141)\r\n</verbatim>\r\n\r\nSee\sthe\s"Ł"\sin\sthe\serror\smessage.\sI\sdon't\swant\sto\simagine\swhat\shappens,\sif\sa\snon\sprintable\scharacter\sis\soutputted.\r\n\r\nThank\syou\sand\stake\scare,\r\nHarald
J foundin main
J is_private 0
J login oehhar
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter oehhar
J subsystem 11.\sConversions\sfrom\sString
J title Error\smessage\sof\s"TclGetBytesFromObj"\smay\sinclude\sarbitrary\scharacter
J type RFE
K 165b10396273d81c7bcef3e564537a39eba7404b
U oehhar
Z 8751f309036ee33f3c19164a826e8b64