[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem loading SPSS 15.0 save files

From: Ben Pfaff
Subject: Re: problem loading SPSS 15.0 save files
Date: Wed, 29 Nov 2006 11:15:59 -0800
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

"Daniel E WILLIAMS" <address@hidden> writes:

> If I save a file in SPSS 15.0 (for Windows), and then try to
> load it in PSPP interactive mode, I get the following error:

Thanks for attaching the system file.  It seems that SPSS 15 is
now indicating the "code page" of the system file in a slot where
it previously just had essentially a constant value.  PSPP
doesn't expect that and so gives an error.

If you are able to apply the following patch to the source code,
and then rebuild, it should fix the problem:

cd /home/blp/pspp/pspp-0.4.0/src/
diff -up /home/blp/pspp/pspp-0.4.0/src/sfm-read.c\~ 
--- /home/blp/pspp/pspp-0.4.0/src/sfm-read.c~   2005-07-30 13:06:30.000000000 
+++ /home/blp/pspp/pspp-0.4.0/src/sfm-read.c    2006-11-29 11:12:42.000000000 
@@ -548,12 +548,14 @@ read_machine_int32_info (struct sfm_read
                                          : _("unknown"))));
   /* PORTME: Character representation code. */
+#if 0
   if (data[7] != 2 && data[7] != 3) 
     lose ((ME, _("%s: File-indicated character representation code (%s) is "
                  "not ASCII."),
            handle_get_filename (r->fh),
            (data[7] == 1 ? "EBCDIC"
             : (data[7] == 4 ? _("DEC Kanji") : _("Unknown")))));
   return 1;

Diff finished at Wed Nov 29 11:12:46

Ben Pfaff 
email: address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]