.
D 2010-12-01T16:18:27
J assignee dgp
J cmimetype text/plain
J comment Don\sPorter\swrote\sto\sme:\n>\sI\ssuspect\sthere\smay\sbe\sanother\sway,\sand\syou\smay\sbe\soverlooking\ssome\n>\sencoding\ssupport\sroutines\sthat\scan\skeep\splatform\sspecific\sstuff\sout\n>\sof\sthe\sgeneric/*.c\sfiles.\s\sBut\sI\scould\salso\sbe\swrong\sabout\sthat.\n\nHere\sis\smy\sattempt\sto\smove\sas\smost\sas\spossible\splatform-dependant\nstuff\sout\sof\s(tcl|tk)Main.c.\n\n-\sImplemented\sa\sstatic\sNewNativeObj()\sfunction,\sso\swe\sno\slonger\shave\sto\n\s\sTcl_SetStartupScript\susing\snative\sencoding,\sen\sthen\slater\sread\sit\sagain\n\s\sand\sconvert\sit\sto\sUTF-8.\sNow\severy\snative-to-obj\sconversions\scan\sbe\n\s\sdone\sin\sone\sstep.\n-\s\n\nAnd\sfor\stkMain.c,\sthere\sare\ssome\sadditional\nimprovements:\n\n-\sconverted\sThreadSpecificData\sin\sInteractiveState\s(just\sas\nalready\sdone\sin\stclMain.c),\swich\san\sadditional\s'gotPartial'\nfield.\sThis\smakes\sTk_MainEx\sthread-safe.\sMoved\sthe\ninChannel\sand\stty\svariables\sthere\stoo.\n-\sUse\sthe\sInteractiveState\sas\sclientData\sin\n\s\sTcl_CreateChannelHandler,\sso\swe\sstill\scan\sunregister\n\s\swhen\sstdin\sbecomes\sinvalid.\n-\suse\sTcl_GetStdChannel(TCL_STDOUT)\sin\sstead\sof\n\s\sTcl_GetChannel(interp,\s"stdout",\sNULL),\sas\sin\stclMain.c\n\nRegards,\n\s\s\s\s\s\s\s\s\sJan\sNijtmans
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nijtmans
J subsystem 50.\sEmbedding\sSupport
J title platform\sspecific\sstuff\sin\s(tcl|tk)Main.c
J type Patch
K 3124683fffffffffffffffffffffffffffffffff
U nijtmans
Z 5b07035e282123e99f348d50ae2f7a56