Bug#228163: (no subject)

Frank Gevaerts Frank Gevaerts <frank@gevaerts.be>, 228163@bugs.debian.org
Thu, 22 Jan 2004 14:04:42 +0100


The problem seems to be in the handling of Vegas_Strip.rules.dat, which
is a gzipped binary file that is read directly into C structs, without
any byte-order or sizeof(int) considerations. 
I think there are several possible solutions : 
- add lots of ntohl() or bswap() calls to the code (this will fix the
  problem for powerpc, but not for 64bit architectures I think)
- change to an ascii or xml based file format
- regenerate the file for each architecture, and move it to the
  gnome-games package instead of gnome-games-data. This would require
  some kind of non-binary source for this file, which I did not find.
 
Frank



-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan