.
D 2005-09-21T21:29:33
J assignee nobody
J cmimetype text/plain
J comment I\shave\sencountered\swhat\sis\sprobably\sthe\sweirdest\sbug\sthat\s\nI\shave\sever\sseen.\sI\shave\sa\slittle\scolor\schooser\sthat\sI\swrote\s\nrecently\sbecause\snone\sof\sthe\sones\savailable\sdid\squite\swhat\s\nI\swanted.\sOne\sof\sits\sfeatures\sis\sthat\syou\scan\sask\sit\sto\spropose\s\na\srandom\scolor.\sAnother\sis\sthat\syou\scan\sask\sit\sto\sfind\sthe\s\nnamed\scolor\sthat\sis\sclosest\sto\sthe\scurrent\scolor.\s\n\s\nWhen\syou\sask\sfor\sa\srandom\scolor,\sit\sshows\sit\sin\sthe\slower\s\nof\stwo\sexample\sslots.\sIf\syou\sthen\sask\sfor\sthe\sclosest\snamed\s\ncolor,\sthe\srandom\scolor\sis\smoved\sinto\sthe\supper\sexample\sslot\s\nand\sthe\snamed\scolor\sis\sshown\sin\sthe\slower\sone.\sIn\sgeneral,\s\nthe\stwo\swill\snot\sbe\sidentical\ssince\sthere\sare\sfar\smore\s\npossible\scolors\sthan\snamed\scolors.\s\n\s\nThe\sbug\sarises\swhen\sa\smessage\stranslation\sis\sread\s\n(that\sis,\swhen\smsgcat::mcget\sis\sexecuted\sand\sfinds\s\na\stranlsation\sin\sthe\smessage\scatalogue.\s\n(Loading\sa\smessage\scatalog\sis\snot\ssufficient\sto\strigger\sthe\sbug.)\s\nWhen\s\s\n\s\nWhen\sI\sdo,\sthe\scolor\schooser\salways\sshows\sthe\srandom\scolor\s\nas\sagreeing\sperfectly\swith\ssome\snamed\scolor.\s\nA\slittle\sinvestigation\sshows\sthat\swhat\sis\sactually\s\nhappening\sis\sthat\sthe\sprimary\sexample\sis\sbeing\scopied\s\ninto\sthe\ssecondary\sexample\sslot,\sas\sit\sshould,\sbut\sis\s\nthen\snot\sbeing\supdated\swith\sthe\scolor\sof\sthe\sclosest\s\nnamed\scolor.\sSo\sthe\stwo\sidentical\scolors\sshown\sare\s\nthe\srandom\scolor,\snot\sthe\sclosest\snamed\scolor.\s\nIt\sturns\sout\sthat\sSetColor\sis\snot\sbeing\scalled\s\nin\sresponse\sto\sthe\sButtonPress-1\sevent\sgenerated\s\nat\sthe\send\sof\sShowEntry.\s\n\s\nI\shave\ssucceeded\sin\sconstructing\sa\sversion\sof\sthe\s\nprogram\sfrom\swhich\sI\shave\sstripped\sas\smuch\sas\sI\s\ncan\swithout\seliminating\sthe\sbug,\sand\sa\sversion\s\nthat\seliminates\sthe\sbug.\sThey\sdiffer\sby\sthe\ssingle\s\nline:\s\n\s\npack\s.srch.search\s-side\sleft\s-expand\s1\s-fill\sx\s-anchor\se\s\s-padx\s4;\s\n\s\nAs\sfar\sas\sI\scan\ssee,\sthere\sis\snothing\swrong\swith\sthis\sline,\s\nor\swith\sanything\selse\sin\sthe\sTcl\scode.\sI\sam\swondering\s\nwhether\sI\shave\smanaged\sto\strigger\san\sobscure\smemory\s\nallocation\sbug.\s\n\s\nThis\sis\swith\sTcl/Tk\s8.4.11\son\sGNU/Linux\s2.6.3-7\swith\sGnome..\s\n\s\nTo\sreproduce\sthe\sbug:\s\n\s\n(a)\sset\syour\slocale\sto\sFrench,\se.g.\sfr_FR.\s\n(b)\srun\sReducedWithBug.tcl\s(attached)\s\n(c)\sclick\son\s"Alleatoire"\s-\sa\snew\scolor\sshould\sappear\sin\s\n\s\s\s\s\sthe\slower\sexample\sslot;\s\n(d)\sclick\son\s"Plus\sProche"\s\n\s\nIf\sthe\sbug\sis\spresent,\sthe\supper\sexample\sslot\swill\sbecome\sthe\s\nsame\scolor\sas\sthe\slower\sone.\sIf\sthe\sbug\sis\sabsent,\sthis\swill\sonly\s\nhappen\sin\srare\sinstances.\sSo,\sif\sthe\stwo\sare\snot\sthe\ssame,\syou\scan\s\nbe\ssure\sthat\sthe\sbug\sis\snot\spresent.\sIf\sthe\stwo\sare\sthe\ssame,\s\nrepeat\sthe\sprocess\sa\sfew\stimes.\sIf\sthe\stwo\sexamples\sare\salways\sthe\s\nsame\safter\spressing\s"Plus\sProche",\sthe\s\nbug\sis\spresent.\s\n\s
J foundin obsolete:\s8.4.11
J priority 5\sMedium
J resolution None
J status Open
J submitter billposer
J subsystem None
J title Reading\stranslation\scauses\sevent\sfailure?
J type Bug
K 1298158fffffffffffffffffffffffffffffffff
U billposer
Z 596227437c515cc58ebdcdecd2a3dc31