Tk Source Code

View Ticket
Login
Ticket UUID: 2902814
Title: wm iconphoto broken in 8.5.8 64 bit linux
Type: Bug Version: obsolete: 8.5.8
Submitter: sbron Created on: 2009-11-23 23:27:06
Subsystem: 67. Unix Window Operations Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-11-24 22:20:45
Resolution: Fixed Closed By: dkf
    Closed on: 2009-11-24 15:20:45
Description:
The wm iconphoto command no longer has any effect with Tk 8.5.8. It works fine with Tk 8.5.7 (both 64-bit builds). It also appears to work with a 8.5.8 32-bit build (at least it does with the 32-bit 8.5.8 ActiveState basekit)

Tested on OpenSuSE 11.2, kernel 2.6.31.5-0.1-default x86_64 with KDE 4.3.1.
User Comments: dkf added on 2009-11-24 22:20:45:

allow_comments - 1

Ugh. The XChangeProperty definition was totally fluffed for LP64 systems (it uses long when int would have done). Oh well, we work with what we've got. (Fixed for 8.5 and HEAD)

dkf added on 2009-11-24 16:12:46:
BTW, the code before was wrong on LP64 systems and had endian problems too (see 2830420).

dkf added on 2009-11-24 16:11:19:
WTF is going wrong?! We're clearly sending the data encoded as 32-bit CARDINAL. Is KDE expecting the data to be fscked up 64-bit instead? (Or is sizeof(unsigned) not 4 on that system? That would be Bad...)

sbron added on 2009-11-24 06:35:42:
Reverting tkUnixWm.c back to the previous version (1.58.2.2) fixes the problem.