<i>$tcl_platform(user) has garbage in sometimes on Win32</i> status still Open with 4 other changes
by
.
D 2009-06-29T22:27:31
J icomment The\sline\sbelow\swas\snot\squite\scorrect:\n\nCorrect\sis:\nTcl_ExternalToUtfDString(NULL,szUserName\s,\s-1,\s&ds);\n\nAnd\sa\stest\scase\sdemonstrating\sfailure\swithout\schange\sand\scorrect\sresult\safter:\n\n#\sTest\sthat\sthe\susername\sis\sset\scorrectly\n\ntest\splatform-4.1\s{tcl_platform(username)\smatches\sthe\susername\s(bug\s#2806622)\s}\s\\\n\s\s\s\s-body\s{\n\s\s\s\s\s\s\s\sset\susername\s$::env(USERNAME)\n\s\s\s\s\s\s\s\sunset\s::env(USERNAME)\n\s\s\s\s\s\s\s\sinterp\screate\suser_name\n\s\s\s\s\s\s\s\sset\sresult\s[user_name\seval\s{set\stcl_platform(user)}]\n\s\s\s\s\s\s\s\sinterp\sdelete\suser_name\n\s\s\s\s\s\s\s\sset\s::env(USERNAME)\s$username\n\s\s\s\s\s\s\s\sexpr\s\s{$result\seq\s$username}\s\n\s\s\s\s}\s\\\n\s\s\s\s-result\s1\n
J login mpc_janssen
J mimetype text/plain
J username mpc_janssen
K 2806622fffffffffffffffffffffffffffffffff
U mpc_janssen
Z d4111bc1742d76e56aa8bae98c2cf0cd