Skip to content
Tcl Source Code Artifact [76434c37f6]
Login

Artifact [76434c37f6]

Artifact 76434c37f660dd2250500f6843ccf10f80a403de:

Ticket change [76434c37f6] - Ticket [584603ffffffffff|584603ffff] <i>infinite loop in &#39;encoding convertfrom&#39;</i> status still Open with 4 other changes by andreas_kupries on 2002-07-24 23:22:31.
D 2002-07-24T23:22:31
J icomment Logged\sIn:\sYES\s\nuser_id=75003\n\nYes,\sthe\sresult\sis\snot\svalid\sutf-8.\sAFAIK\s[encoding\sconvertfrom\s\nidentity]\sis\sthe\sonly\scommand/argument\scombo\swhich\sis\sable\s\nto\sdo\sthis.\sWith\sregard\sto\sgeneration\sof\sa\sbyte-array\s...\sThe\s\ncode\sof\s[encoding\sconvertfrom]\s\ninvokes\s"Tcl_ExternalToUtfDString".\sThis\smeans\sthat\sthe\s\ncaller\shas\snot\senough\sinformation\sto\sbe\sable\sto\sdecide\sif\sthe\s\ngenerated\sDString\sis\svalid\sutf-8\sor\snot,\sthus\sunable\sto\sdecide\s\nwhether\sto\sgenerate\sa\sstring\sor\sa\sbytearray\sobject.\n\nAFAIK\s[encoding\sconvertfrom\s(identity)]\sis\sused\sin\sthe\s\ntestsuite\sto\sthoroughly\stest\sthe\sencoding/utf-8\ssystem.\s\nOutside\sof\sthis\sI\scurrently\ssee\sno\sapplication\sfor\sthe\sidentity\s\nencoding.\n\nRegarding\sTclObj\s/\sUTF-8\s...\sJeff\stold\sme\syesterday\sthat\swe\s\nhave\snearly\strue\sUTF-8,\swith\sthe\sexception\sof\sembedded\s\\0's.\n\nRegarding\sTcl_Main:\sIMHO\swe\sat\sleast\shave\sto\stell\sthe\suser\s\nwhen\sa\sresult\scould\snot\sbe\sprinted\sdue\sto\sinvalid\sutf-8\s...\s\nInvalid\sutf-8\sshould\snot\shappen\sin\s99.999%\sof\scases,\sonly\swith\s\n[enc\scf\sident]\sas\ssaid\sabove.\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 584603ffffffffffffffffffffffffffffffffff
U andreas_kupries
Z 21834c83dc6b0391c0ece596a8e3723c