.
D 2000-10-26T00:53:54
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2186\sRFE\nVersion:\s8.1.1\nSubmitDate:\s'1999-06-07'\nLastModified:\s'1999-09-01'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sWindows\sNT\nOSVersion:\s4.0\ssp5\nMachine:\sX86\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-09-01'\n\n\nName:\nDavid\sGravereaux\n\nComments:\nhere's\sthe\sglobal\swrapper\scode\sI'm\susing\sto\sshow\syou\swhat\sI'm\sdoing:\n\s\s\s\s\n\s\s\s\sstatic\sint\sfake_Cmd\s(ClientData\sclientData,\sTcl_Interp\s*interp,\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sint\sargc,\schar\s*argv[])\s\n\s\s\s\s{\n\s\s\s\s\sTcl_DString\s*dst;\n\s\s\s\s\sXiRCFakeData\s*data\s=\s(XiRCFakeData\s*)\sclientData;\n\s\s\s\s\sint\si,rtn\s=\sTCL_ERROR;\n\s\s\s\s\n\s\s\s\s\s\s//\sset\sthe\ssize\n\s\s\s\s\s\sdst\s=\snew\sTcl_DString[argc];\n\s\s\s\s\n\s\s\s\s\s\s//\sdecode\sargs\sfrom\sUTF-8\sinto\siso8859-1\n\s\s\s\s\s\sfor\s(i=0;\si<argc;\si++)\s{\n\s\s\s\s\s\s\s\sTcl_DStringInit(&dst[i]);\n\s\s\s\s\n\s\s\s\sTcl_UtfToExternalDString(Tcl_GetEncoding(NULL,"iso8859-1"),argv[i],-1,&ds\n\s\s\s\st[i]);\n\s\s\s\s\s\s\s\sargv[i]\s=\sTcl_DStringValue(&dst[i]);\n\s\s\s\s\s\s}\n\s\s\s\s\n\s\s\s\s\s\s//\scalling\sinto\sXiRCON\n\s\s\s\s\s\srtn\s=\s(data->proc)(data->data,interp,argc,argv);\n\s\s\s\s\n\s\s\s\s\s\sfor\s(i=0;\si<argc;\si++)\s{\n\s\s\s\s\s\s\s\sTcl_DStringFree(&dst[i]);\n\s\s\s\s\s\s}\n\s\s\s\s\s\sdelete\sdst;\n\s\s\s\s\n\s\s\s\s\s\sreturn\srtn;\n\s\s\s\s};\n\nDesiredBehavior:\nI\srecently\spatched\san\sold\sprogram\sthat\sused\s7.6p2\sand\supgraded\sit\sto\suse\n\s\s\s\s8.1.1\s.\s\sI\sdiscovered\sthat\sthe\sargv[]\sarray\sgiven\sto\sthe\sTcl\scommands\n\s\s\s\sthis\sprogram\sprovides\sto\sthe\sinterp\sis\sin\sUTF-8.\s\sIt\swasn't\sdifficult\sto\n\s\s\s\sfix,\sbut\sfor\strue\sbackward\scompatibility\sI\sthink\sTcl\s8.1.x\sshould\sdo\sit\n\s\s\s\sautomaticly\swithout\sneeding\sto\swrap\seach\scommand\swith\sa\sdecoding\n\s\s\s\sroutine.\n\n\n\n8.1+\sis\sfull\sUTF\sin\sthe\sinternals.\s\sWhile\sthis\sis\san\sinteresting\nand\suseful\sbetween\sstep\sfor\speople\supgrading,\sit\swould\snot\sbe\ngood\sto\schange\sthis\sat\sthe\score\slevel.\s\sThe\ssame\sgoes\sfor\sobjects\nand\sthe\suse\sof\sStringifyObjects\sbetween\s7\sand\s8.\s\n--\s09/01/1999\shobbs
J foundin final:\s8.1.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title UTF\scleanliness\sin\sthe\s7.6\s(string)\sinterface
J type RFE
K 218157ffffffffffffffffffffffffffffffffff
U nobody
Z dedbbb18ad40a3d5e1d9135da934950c