Wesley Hosking writes:
> I have 1.4 running, on rh6.2 (on Intel and Ultra Sparc ) Linux.
> After creating the accounts file with the Intel version, when I try
> and bring it up on the UltraSparc I get :
>
> This file appears to be from a newer version of GNUCash. You must
> upgrade GnuCash to read this file.
>
>
> Any hints on getting around this, or is this a Big/Little Endian
> problem (ie: is the file in a Binary format - it looks like it from
> examining its contents.. ).
> Intel Version :
> 0000000 \n \0 \0 \0 005 \0 \0 \0 021 \0 \0 \0 \0 002 \a \0
> 0000020 \0 \0 A s s e t s \0 001 \0 \0 \0 \0 \r \0
> 0000040 \0 \0 A s s e t B r a n c h \0 001
> 0000060 \0 \0 \0 \0 004 \0 \0 \0 A U D \0 001 \0 \0 \0
> 0000100 \0 \0 \0 \0 \0 001 \0 \0 \0 003 \0 \0 \0 003 \0 \0
> 0000120 \0 \0 \0 005 \0 \0 \0 C a s h \0 001 \0 \0 \0
> 0000140 \0 024 \0 \0 \0 B a n k A c c o u n
> 0000160 t s , C a s h \0 037 \0 \0 \0 P l a
> ....
>
> A (different) Sparc Version :
> 0000000 \0 \0 \0 \n \0 \0 \0 001 \0 \0 \0 \0 \0 002 \0 \0
> 0000020 \0 006 A s s e t \0 \0 \0 \0 001 \0 \0 \0 \0
> 0000040 001 \0 \0 \0 \0 001 \0 \0 \0 \0 004 A U D \0 \0
> 0000060 \0 \0 001 \0 \0 \0 \0 \0 \0 \0 \0 \0
>
>
> Certainly looks like an Endian problem !
I don't think it's an endian problem, but rather a sizeof(int) problem.
Thus, the perils of a binary format. We are adding a text-based input/output
format in the 1.5 series which (may) become the default format, thus
removing this problem.
thanks,
dave
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]