.
D 2000-10-26T01:10:34
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5422\sRFE\nVersion:\s8.3.1\nSubmitDate:\s'2000-05-10'\nLastModified:\s'2000-05-18'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nRelatedBugIDs:\s4236\s4280\s3345\s5425\nOS:\sLinux-Red\sHat\nMachine:\sRedHat\sLinux\s6.1J\nFixedDate:\s'2000-05-18'\nFixedInVersion:\s8.4a1\nClosedDate:\s'2000-10-25'\n\n\nName:\nKeiichi\sTakahashi\n\nCVS:\n10-May-2000\n\nDesiredBehavior:\nCurrently,\sXIM\ssupport\sdoesn't\swork\syet\son\sUNIX.\sHere\sare\sthe\spatches\soriginally\swritten\sby\sm-hirano\s<[email protected]>\sto\smake\severything\swork.\n\nPatch:\ndiff\s-c\s-r\s-P\stcl8.4/unix/Makefile.in\sxim/tcl8.4/unix/Makefile.in\n***\stcl8.4/unix/Makefile.inWed\sMay\s\s3\s09:13:55\s2000\n---\sxim/tcl8.4/unix/Makefile.inWed\sMay\s10\s10:42:39\s2000\n***************\n***\s82,87\s****\n---\s82,90\s----\n\s\sCFLAGS_DEBUG=\s@CFLAGS_DEBUG@\n\s\sCFLAGS_OPTIMIZE=\s@CFLAGS_OPTIMIZE@\n\n+\s#\sI18n\simprovement\sflags\n+\sI18N_FLAGS=\s@I18N_FLAGS@\n+\s\n\s\s#\sTo\schange\sthe\scompiler\sswitches,\sfor\sexample\sto\schange\sfrom\soptimization\sto\n\s\s#\sdebugging\ssymbols,\schange\sthe\sfollowing\sline:\n\s\s#CFLAGS=\s$(CFLAGS_DEBUG)\n***************\n***\s212,218\s****\n\n\s\sCOMPAT_OBJS=\s@LIBOBJS@\n\n!\sAC_FLAGS=\s@EXTRA_CFLAGS@\s@DEFS@\n\s\sRANLIB=\s@RANLIB@\n\s\sSRC_DIR=\s@srcdir@\n\s\sTOP_DIR=\s@srcdir@/..\n---\s215,221\s----\n\n\s\sCOMPAT_OBJS=\s@LIBOBJS@\n\n!\sAC_FLAGS=\s@EXTRA_CFLAGS@\s@DEFS@\s@CPPFLAGS@\s@I18N_FLAGS@\n\s\sRANLIB=\s@RANLIB@\n\s\sSRC_DIR=\s@srcdir@\n\s\sTOP_DIR=\s@srcdir@/..\ndiff\s-c\s-r\s-P\stcl8.4/unix/configure.in\sxim/tcl8.4/unix/configure.in\n***\stcl8.4/unix/configure.inWed\sMay\s\s3\s09:15:10\s2000\n---\sxim/tcl8.4/unix/configure.inWed\sMay\s10\s10:42:39\s2000\n***************\n***\s141,146\s****\n---\s141,152\s----\n\s\s\s\s\s\sAC_DEFINE(NO_FD_SET)\n\s\sfi\n\n+\s#------------------------------------------------------------------------\n+\s#\si18n\simprovement\n+\s#------------------------------------------------------------------------\n+\s\n+\sSC_ENABLE_I18N_IMPROVE\n+\s\n\s\s#------------------------------------------------------------------------------\n\s\s#\s\s\s\s\s\s\sFind\sout\sall\sabout\stime\shandling\sdifferences.\n\s\s#------------------------------------------------------------------------------\ndiff\s-c\s-r\s-P\stcl8.4/unix/tcl.m4\sxim/tcl8.4/unix/tcl.m4\n***\stcl8.4/unix/tcl.m4Fri\sApr\s14\s15:42:41\s2000\n---\sxim/tcl8.4/unix/tcl.m4Wed\sMay\s10\s10:46:35\s2000\n***************\n***\s1748,1750\s****\n---\s1748,1791\s----\n\s\s\s\s\s\sAC_SUBST(TCL_LIBS)\n\s\s\s\s\s\sAC_SUBST(MATH_LIBS)\n\s\s])\n+\s\n+\s#------------------------------------------------------------------------\n+\s#\sSC_ENABLE_I18N_IMPROVE\n+\s#\n+\s#Decide\suse\si18n\simproved\sfeatures\sor\snot.\n+\s#\n+\s#\sArguments:\n+\s#none\n+\s#\n+\s#\sResults:\n+\s#\n+\s#Adds\sthe\sfollowing\sarguments\sto\sconfigure:\n+\s#--enable-i18nImprove=yes|no\n+\s#\n+\s#Defines\sthe\sfollowing\svars:\n+\s#I18N_FLAGSvalue\sof\s'-DI18N_IMPROVE'\sor\s''\n+\s#------------------------------------------------------------------------\n+\s\n+\sAC_DEFUN(SC_ENABLE_I18N_IMPROVE,\s[\n+\s\s\s\s\sAC_MSG_CHECKING([if\si18n\simprovement\sfeatures\sare\senabled])\n+\s\s\s\s\sAC_ARG_ENABLE(i18nImprove,\n+\s\s\s\s\s[\s\s--enable-i18nImprove\s\s\s\senable\si18n\simprovement\sfeatures\s[--enable-i18nImprove]],\n+\s\s\s\s\s[tcl_ok=$enableval],\s[tcl_ok=yes])\n+\s\n+\s\s\s\s\sif\stest\s"${enable_i18nImprove+set}"\s=\sset;\sthen\n+\senableval="$enable_i18nImprove"\n+\stcl_ok=$enableval\n+\s\s\s\s\selse\n+\stcl_ok=yes\n+\s\s\s\s\sfi\n+\s\n+\s\s\s\s\sif\stest\s"$tcl_ok"\s=\s"yes"\s;\sthen\n+\sAC_MSG_RESULT([enabled])\n+\sI18N_FLAGS='-DI18N_IMPROVE'\n+\s\s\s\s\selse\n+\sAC_MSG_RESULT([disabled])\n+\sI18N_FLAGS=''\n+\s\s\s\s\sfi\n+\s\n+\s\s\s\s\sAC_SUBST(I18N_FLAGS)\n+\s])\ndiff\s-c\s-r\s-P\stcl8.4/unix/tclConfig.sh.in\sxim/tcl8.4/unix/tclConfig.sh.in\n***\stcl8.4/unix/tclConfig.sh.inFri\sJul\s30\s04:21:32\s1999\n---\sxim/tcl8.4/unix/tclConfig.sh.inWed\sMay\s10\s10:42:39\s2000\n***************\n***\s21,27\s****\n\s\sTCL_CC='@CC@'\n\n\s\s#\s-D\sflags\sfor\suse\swith\sthe\sC\scompiler.\n!\sTCL_DEFS='@DEFS@'\n\n\s\s#\sIf\sTCL\swas\sbuilt\swith\sdebugging\ssymbols,\sgenerated\slibraries\scontain\n\s\s#\sthis\sstring\sat\sthe\send\sof\sthe\slibrary\sname\s(before\sthe\sextension).\n---\s21,27\s----\n\s\sTCL_CC='@CC@'\n\n\s\s#\s-D\sflags\sfor\suse\swith\sthe\sC\scompiler.\n!\sTCL_DEFS='@DEFS@\s@I18N_FLAGS@'\n\n\s\s#\sIf\sTCL\swas\sbuilt\swith\sdebugging\ssymbols,\sgenerated\slibraries\scontain\n\s\s#\sthis\sstring\sat\sthe\send\sof\sthe\slibrary\sname\s(before\sthe\sextension).\n***************\n***\s30,35\s****\n---\s30,38\s----\n\s\s#\sDefault\sflags\sused\sin\san\soptimized\sand\sdebuggable\sbuild,\srespectively.\n\s\sTCL_CFLAGS_DEBUG='@CFLAGS_DEBUG@'\n\s\sTCL_CFLAGS_OPTIMIZE='@CFLAGS_OPTIMIZE@'\n+\s\n+\s#\sI18n\simprovement\sflags\n+\sTCL_I18N_IMPROVE_FLAGS='@I18N_FLAGS@'\n\n\s\s#\sDefault\slinker\sflags\sused\sin\san\soptimized\sand\sdebuggable\sbuild,\srespectively.\n\s\sTCL_LDFLAGS_DEBUG='@LDFLAGS_DEBUG@'\ndiff\s-c\s-r\s-P\stcl8.4/unix/tclUnixInit.c\sxim/tcl8.4/unix/tclUnixInit.c\n***\stcl8.4/unix/tclUnixInit.cWed\sOct\s13\s09:32:49\s1999\n---\sxim/tcl8.4/unix/tclUnixInit.cWed\sMay\s10\s10:42:39\s2000\n***************\n***\s369,375\s****\n---\s369,377\s----\n\s\s\s\s\s\sint\si;\n\s\s\s\s\s\sTcl_Obj\s*pathPtr;\n\s\s\s\s\s\schar\s*langEnv;\n+\s#ifndef\sI18N_IMPROVE\n\s\s\s\s\s\sTcl_DString\sds;\n+\s#endif\s/*\s!I18N_IMPROVE\s*/\n\n\s\s\s\s\s\s/*\n\s\s\s\s\s\s\s*\sDetermine\sthe\scurrent\sencoding\sfrom\sthe\sLC_*\sor\sLANG\senvironment\n***************\n***\s432,437\s****\n---\s434,440\s----\n\n\s\s\s\s\s\sTcl_SetSystemEncoding(NULL,\sencoding);\n\n+\s#ifndef\sI18N_IMPROVE\n\s\s\s\s\s\s/*\n\s\s\s\s\s\s\s*\sInitialize\sthe\sC\slibrary's\slocale\ssubsystem.\s\sThis\sis\srequired\n\s\s\s\s\s\s\s*\sfor\sinput\smethods\sto\swork\sproperly\son\sX11.\sNote\sthat\swe\sneed\sto\n***************\n***\s445,450\s****\n---\s448,497\s----\n\s\s\s\s\s\ssetlocale(LC_ALL,\s"");\n\s\s\s\s\s\ssetlocale(LC_ALL,\sTcl_DStringValue(&ds));\n\s\s\s\s\s\sTcl_DStringFree(&ds);\n+\s#else\n+\s\s\s\s\s/*\n+\s\s\s\s\s\s*\sHey,\saboves\sare\shelpful\sfor\sX11\sXIM,\sNOT!!!!\n+\s\s\s\s\s\s*\n+\s\s\s\s\s\s*\sIf\ssetlocale(LC_ALL,\s"")\sare\sonce\scalled,\sNOT\sreset\sto\s"C"\n+\s\s\s\s\s\s*\sBECAUSE\sOF\sX11\suses\slocale\ssensitive\slibc\sroutines\ssuch\sas:\n+\s\s\s\s\s\s*\s\n+\s\s\s\s\s\s*mblen()\n+\s\s\s\s\s\s*mbstowcs()\n+\s\s\s\s\s\s*wcstombs()\n+\s\s\s\s\s\s*\n+\s\s\s\s\s\s*\sCalling\ssetlocale()\swith\sproper\slocale\sis\sof\scourse\sneeded,\n+\s\s\s\s\s\s*\sfuthermore,\skeeping\sthe\sproper\slocale\ssetting\sis\sALSO\sneeded\n+\s\s\s\s\s\s*\sfor\sproper\sXIM\soperation.\sIf\snot,\sin\sthe\sworst\scase,\sTk\sdumps\n+\s\s\s\s\s\s*\score.\n+\s\s\s\s\s\s*\n+\s\s\s\s\s\s*\sAnd\shere's\sanother\sstory:\n+\s\s\s\s\s\s*\n+\s\s\s\s\s\s*\sX11[56]'s\sinternationalization\sdepends\son\s"locale\smodel"\n+\s\s\s\s\s\s*\ssupported\sby\sC\slanguage\s(runtime).\sBut\sunfortunately,\son\ssome\n+\s\s\s\s\s\s*\s(many)\ssystems,\ssetlocale(3)\ssupports\sonly\s"C"\slocale.\sFor\ssuch\n+\s\s\s\s\s\s*\sa\ssystem,\sX11\slibrary\shas\s_Xsetlocale()\s(and\ssome\slocale\n+\s\s\s\s\s\s*\ssensitive\sC\sruntime\sfunction\slike\sthe\smblen(),\seven\sIf\sthese\n+\s\s\s\s\s\s*\sfunction\sare\snot\swell-implemented,\ssigh).\sIf\son\ssuch\sa\ssystem,\n+\s\s\s\s\s\s*\swe\sshould't\scall:\n+\s\s\s\s\s\s*\n+\s\s\s\s\s\s*setlocale(LC_ALL)\n+\s\s\s\s\s\s*or\n+\s\s\s\s\s\s*setlocale(LC_CTYPE)\n+\s\s\s\s\s\s*\n+\s\s\s\s\s\s*\sat\shere\sbecause\sTcl\swon't\sbe\slinked\swith\sX11\slibraries\sand\n+\s\s\s\s\s\s*\snobody\swant\sto\suse\sthe\sTcl\slibrary\sthat\sneeds\sX11\slibraries\sat\n+\s\s\s\s\s\s*\sexecution/linkage\stime.\sInstead,\scall\ssetlocale()\s(expanded\sto\n+\s\s\s\s\s\s*\s_Xsetlocale()\swith\sC\spreprocessor\smacro\sin\s<X11/Xlocale.h>\sif\n+\s\s\s\s\s\s*\sX_LOCLAE\sC\spreprocessor\smacro\sis\sdefined,\snormaly\sdone\sin\sImake\n+\s\s\s\s\s\s*\senvironment)\sat\sthe\sinitializing\sof\sTk.\sSo,\sat\shere,\sI\sjust\n+\s\s\s\s\s\s*\scall\sonly\ssetlocale(LC_NUMERIC)\ssince\sX11's\sinternationalize\n+\s\s\s\s\s\s*\simplementation\sonly\sdepends\son\sLC_CTYPE\scategoly\s(of\scource\n+\s\s\s\s\s\s*\sLC_ALL\sincludes\sthis),\sThis\smust\sbe\sharmless\sand\smight\slet\sthe\n+\s\s\s\s\s\s*\sTcl\sand\sthe\sTk\swith\sXIM\sbe\sboth\shappy\s:)\n+\s\s\s\s\s\s*\n+\s\s\s\s\s\s*m-hirano\n+\s\s\s\s\s\s*/\n+\s#endif\s/*\s!I18N_IMPROVE\s*/\n\n\s\s\s\s\s\s/*\n\s\s\s\s\s\s\s*\sIn\scase\sthe\sinitial\slocale\sis\snot\s"C",\sensure\sthat\sthe\snumeric\n\nPatchFiles:\ntcl8.4/unix/Makefile.in\n\s\s\s\stcl8.4/unix/configure.in\n\s\s\s\stcl8.4/unix/tcl.m4\n\s\s\s\stcl8.4/unix/tclConfig.sh\n\s\s\s\stcl8.4/unix/tclConfig.sh.in\n\s\s\s\stcl8.4/unix/tclUnixInit.c\n\n\n\nThere\swere\ssomewhat\sconflicting\spatches\sto\sget\svarious\si18n\sand\n\nl10n\sissues\sfixed.\s\sI\shave\schosen\sto\ssimplify\sthings\sat\sthe\sTcl\n\nlevel\sby\snot\shave\sany\sextra\sflags.\n\n\n\nFor\s8.4a1,\sI\sam\sgoing\sto\stry\sthe\sfollowing\scode:\n\n\n\n\s\s\s\sresetPath:\n\n\s\s\s\s/*\n\n\s\s\s\s\s*\sInitialize\sthe\sC\slibrary's\slocale\ssubsystem.\s\sThis\sis\srequired\n\n\s\s\s\s\s*\sfor\sinput\smethods\sto\swork\sproperly\son\sX11.\s\sWe\sonly\sdo\sthis\sfor\n\n\s\s\s\s\s*\sLC_CTYPE\sbecause\sthat's\sthe\snecessary\sone,\sand\swe\sdon't\swant\sto\n\n\s\s\s\s\s*\saffect\sLC_TIME\shere.\s\sThe\sside\seffect\sof\ssetting\sthe\sdefault\slocale\n\n\s\s\s\s\s*\sshould\sbe\sto\sload\sany\slocale\sspecific\smodules\sthat\sare\sneeded\sby\sX.\n\n\s\s\s\s\s*\s[BUG:\s5422\s3345\s4236\s2522\s2521].\n\n\s\s\s\s\s*/\n\n\n\n\s\s\s\ssetlocale(LC_CTYPE,\s"");\n\n\n\n\s\s\s\s/*\n\n\s\s\s\s\s*\sIn\scase\sthe\sinitial\slocale\sis\snot\s"C",\sensure\sthat\sthe\snumeric\n\n\s\s\s\s\s*\sprocessing\sis\sdone\sin\s"C"\slocale\sregardless.\s\sThis\sis\sneeded\sbecause\n\n\s\s\s\s\s*\sTcl\srelies\son\sroutines\slike\sstrtod,\sbut\sshould\snot\shave\slocale\n\n\s\s\s\s\s*\sdependent\sbehavior.\n\n\s\s\s\s\s*/\n\n\n\n\s\s\s\ssetlocale(LC_NUMERIC,\s"C");\n\n\n\nThis\smeans\sonly\sLC_CTYPE\sgets\sinterped,\snot\sLC_ALL\s(and\sthus\snot\n\nLC_TIME).\s\sMost\susers\swant\sto\srely\son\sclock\sreturning\san\sEnglish\n\nformatted\stime.\s\sIf\sonly\sthe\s%c\sformat\sto\sclock\swould\suse\sthe\slocale\n\nspecific\stimes,\sthen\swe\scould\smake\sthe\sLC_CTYPE\sinto\sLC_ALL,\sbut\sI\n\ndon't\shave\sa\ssystem\son\swhich\sto\stest\sthat.\s\sIf\sthat\sis\snot\sthe\scase,\n\nthen\sit\swould\sbe\sbetter\sto\sadd\sa\s'locale'\scommand\sin\sTcl\sto\scontrol\n\nthese\sthings\soptionally\s(or\smaybe\s'encoding\slocale\s...').\n\n\n\nI\shave\salso\sadded\sthe\sexternal\sencoding\sfix\sfor\stclClock.c\sfrom\s3345,\n\nalthough\swe\sdon't\schange\sthe\sLC_TIME\sexplicitly\syet.\n\n\n\nThis\swill\shave\sto\sbe\sreconciled\sagainst\s5425,\sXIM\ssupport\sfor\sTk.\n\nHopefully\sthis\swill\scorrect\sthe\score\sto\swork\sreliably\son\sall\ssystems,\n\nwhile\sstill\sallowing\sfor\sextensions\sto\schange\sthe\slocale\sand\shave\sTcl\n\nstill\swork\s(all\sexcept\schanging\sLC_NUMERIC).\n\n\n\nSome\scomments\sfrom\susers\sthat\scaused\sthis\sdecision:\n\n\n\n--\sMotonori\sHeita\sHirano\s[[email protected]]\s--\n\n\n\n\s\sWhat\sthe\smost\simportant\sthings\sto\slet\sthe\sXIM\swork\sfine\sare:\n\n\n\n1.\sCall\ssetlocale(LC_CTYPE,\s"")\sbefore\scalling\sXOpenIO().\n\n2.\sOnce\sthe\sabove\swas\sdone,\sDON'T\sCHANGE\sLC_CTYPE\ssetting\svia\scalling\n\n\s\s\ssetlocale(LC_CTYPE,\s"otherValue").\n\n\n\n\s\sFurthermore,\sto\scare\sabout\ssystems\susing\s_xsetlocale()\sin\sXlib\n\ninstead\sof\ssetlocale(3)\sin\slibc\s(or\ssome\sother\slibraries),\n\n\n\n3.\sDON'T\sCALL\ssetlocale(3)\sin\sTcl\sBUT\sTk\sor\sWe\shave\sto\slink\sTcl\swith\n\n\s\s\s-lX11\sand\swe\sknow\sthis\skinda\sTcl\ssucks.\n\n--------\n\n\n\n--\sVictor\sWagner\s[[email protected]]\s--\n\n\n\nAs\sfar\sas\sI'm\sunderstand,\sXkb\sinput\s(which\smost\sRussian\susers\suse)\s\n\nwouldn't\swork\swithout\sLC_CTYPE\sor\sadditional\senvironment\svariable\n\n_XKB_CHARSET\s(which\sis\sconsidered\sugly\shack).\n\n\n\nLC_COLLATE\sis\snot\sneccessary\sbecouse\sall\ssorting\sis\sdone\sin\sUnicode\n\n(although\sunicode\sbinary\ssequence\smay\snot\sbe\ssufficient\sfor\sUkrainian\sand\n\nBelorussian\susers),\sbut\sdefinitely\sdoes\sno\sharm.\s\n\n\n\nLC_TIME\sis\sneccessary\sfor\scorrect\sdate\soutput,\sso\sit\sis\suseful\sonly\sin\n\nconjunction\swith\sclock\spatch\sand\srather\sharmful\swithout\sit.\n\n\n\nLC_MESSAGES\sseems\sto\sbe\stotally\sirrelevant\sfor\sTCL.\n\n\n\nSo,\sthere\sare\sreally\stwo\soptions:\n\n\n\n1.\sExplicitely\sset\sLC_CTYPE\sand\sLC_TIME\n\n\s\s\sIt\shas\sthat\sbenefit\sthat\ssetting\sLC_TIME\scan\sbe\scontrolled\sby\ssame\n\n\s\s\sconfiguration\soption\sas\sclock\spatch\sif\syou\sdecide\sto\smake\sit\soptional.\n\n\n\n2.\sSet\sLC_ALL\sand\sreset\sLC_NUMERIC\slater.\n\n\s\s\swhich\sseems\sbetter,\sbecouse\smay\sbe\ssomebody\swould\scome\sout\swith\n\n\s\s\sextension\sto\ssupport\sGNU\sgettext,\sand\swe\salready\shave\sprovisions\n\n\s\s\sfor\scorrectly\ssetting\sLC_MESSAGES\sfor\sit.\n\n--------------------\n\n\n\n--\sMotonori\sHeita\sHirano\s[[email protected]]\s--\n\n\n\n>>>\s\s\sI\sbelieve\sTcl\sdose\sNOT\sdepend\son\slocale\smodel,\sright?\sWhy\sdo\n\n>>>\sthose\sRussians\sneed\sto\scall\ssetlocale(3)\sin\sTcl\s???\n\n\n\n>>\sBecouse\swe\sdo\swant\sour\snative\smonth\sand\sweekday\snames\sand\swant\sto\n\n>>\sread\ssystem\smessages\son\sour\snative\slanguage.\s\sI've\sheard\sthat\sin\n\n>>\sJapan\severy\seducated\sperson\sknow\senough\sEnglish\sto\sunderstand\n\n>>\ssimple\sthings.\sIn\sRussia\sit\sis\snot\sa\scase.\n\n\n\n\s\sI\sgot\sit.\sTry\sfollowing\spatch\sfor\smy\slatest\spatch.\n\n\n\n-------\sFor\sTcl\s----------------------------------------------------\n\n***\s./tclUnixInit.c.bak\sMon\sMay\s\s1\s15:28:59\s2000\n\n---\s./tclUnixInit.c\s\s\s\s\sThu\sMay\s18\s17:06:57\s2000\n\n***************\n\n***\s491,496\s****\n\n---\s491,504\s----\n\n\s\s\s\s\s\s\s*\n\n\s\s\s\s\s\s\s*\s\s\s\s\s\s\s\sm-hirano\n\n\s\s\s\s\s\s\s*/\n\n+\s\s\s\s\s/*\n\n+\s\s\s\s\s\s*\sThu\sMay\s18\s16:57:42\sJST\s2000\n\n+\s\s\s\s\s\s*\s\sFor\speople\swho\swant\sto\suse\slocale\sdependent\smessages\sin\sTcl,\n\n+\s\s\s\s\s\s*\scall\ssetlocale(LC_ALL,\s"")\shere\sanyway.\sI\sknow\sthis\sis\sharmful\n\n+\s\s\s\s\s\s*\swith\sasian\slocale\son\sFreeBSD.\sOn\sFreeBSD,\sTcl\smust\sbe\slinked\n\n+\s\s\s\s\s\s*\swith\s-lxpg4\sif\sI\scall\ssetlocale(LC_ALL,\s"")\svery\shere.\n\n+\s\s\s\s\s\s*/\n\n+\s\s\s\s\s(void)setlocale(LC_ALL,\s"");\n\n\s\s#endif\s/*\s!I18N_IMPROVE\s*/\n\n\s\s\n\n\s\s\s\s\s\s/*\n\n-------\sFor\sTk\s----------------------------------------------------\n\n***\s../generic/tkWindow.c.bak\s\s\sThu\sMay\s18\s17:51:56\s2000\n\n---\s../generic/tkWindow.c\s\s\s\s\s\s\sThu\sMay\s18\s17:52:45\s2000\n\n***************\n\n***\s2515,2523\s****\n\n\s\s\s\s\s\s\s\s\s*/\n\n\s\s\n\n\s\s\s\s\s\s\s\s/*\n\n!\s\s\s\s\s\s\s\s*\sOK,\sFirst\sof\sall,\ssetting\sWHOLE\slocale\sto\s"C".\n\n\s\s\s\s\s\s\s\s\s*/\n\n!\s\s\s\s\s\s\s(void)setlocale(LC_ALL,\s"C");\n\n\s\s\s\s\s\s\s\sif\s(setlocale(LC_CTYPE,\slocale)\s==\sNULL)\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\s/*\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\sReset\sto\sold\slocale.\n\n---\s2515,2524\s----\n\n\s\s\s\s\s\s\s\s\s*/\n\n\s\s\n\n\s\s\s\s\s\s\s\s/*\n\n!\s\s\s\s\s\s\s\s*\sOK,\sFirst\sof\sall,\ssetting\sWHOLE\slocale\sto\s""\sas\susual\sUNIX\n\n!\s\s\s\s\s\s\s\s*\si18n'd\sprogram.\n\n\s\s\s\s\s\s\s\s\s*/\n\n!\s\s\s\s\s\s\s(void)setlocale(LC_ALL,\s"");\n\n\s\s\s\s\s\s\s\sif\s(setlocale(LC_CTYPE,\slocale)\s==\sNULL)\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\s/*\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\sReset\sto\sold\slocale.\n\n-----------------------------------------------------------\n\n\n\n\s\n\n--\s05/18/2000\shobbs
J foundin obsolete:\s8.3.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 57.\szlib
J title XIM\sSupport
J type Bug
K 219090ffffffffffffffffffffffffffffffffff
U nobody
Z f053ae9f8b6f312839e7b133a23b1da8