Below is a list of the bugs that are fixed by patch 2 for Tk 4.0 (Tk 4.0p2): 8/4/95 (bug fix) Calls to toupper and tolower weren't using the UCHAR macro, so they didn't always work in non-U.S. locales. (JO) 8/16/95 (bug fix) Canvases didn't generate proper Enter and Leave events if the Leave handler for an item reconfigured the canvas in a way that made the old current item the new current item again. (JO) 8/21/95 (bug fixes) Fixed memory leaks in tkSend.c, tkSelect.c, and tkWm.c (JO). 8/21/95 (bug fix) Text widgets didn't handle commands like ".t search -backwards foo end 1.0" properly: never found foo. 8/25/95 (bug fix) Fixed bug in libary/menu.tcl that caused "grab window not visible" errors for popup menus (and perhaps elsewhere?). (JO) 8/25/95 (bug fix) Scrollbar bindings didn't properly handle case where B2 is clicked while B1 is already down. (JO) 8/26/95 (bug fix) Menus were ignoring -activebackground if tk_strictMotif was set, but not -activeforeground. Changed to ignore both. (JO) 8/26/95 (bug fix) Scales and scrollbars didn't properly handle a -repeatdelay value of 0 (they shouldn't auto-repeat in this case). (JO) 8/28/95 (bug fix) Tcl errors were occurring for tkPriv(oldGrab) when clicking on a disabled option menu. (JO) 8/28/95 (bug fix) Changed event-handling code to use FD_SETSIZE instead of OPEN_MAX, since OPEN_MAX is incorrect on some systems (e.g., IRIX). (JO) 8/28/95 (bug fix) Fixed bug in photo images that caused garbling of image data in the "put" and "copy" commands if the source data had only one scan line but had a width less than the width of the target image. (JO) 8/29/95 (bug fix) Tk used to refuse to post menus if they had no entries. This made it impossible for a menu to fill itself the first time it is posted. Changed to allow menus with no entries to be posted. (JO) 8/30/95 (new features) Added proper button 2 support to both scrollbars and scales (it sets the slider position from the mouse position). (JO) 8/30/95 (bug fix) Fixed potential core dump that could occur in photo images (ReadPPMFileHeader could overflow buffer under some bad inputs, such as certain GIF images). (JO) 8/39/95 (bug fix) Errors of the form `syntax error in expression "!"' could occasionally happen in tkScaleDrag. (JO) 9/19/95 (bug fix) Fixed bug in text index processing that causes tests textIndex-11.1 and textIndex12.1 to fail on some platforms.