bug-gnu-pspp
[Top][All Lists]
Advanced

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

Re: PSPP-BUG: Failure to handle an antique SPSS file containing umlauts


From: Przemek Powalko
Subject: Re: PSPP-BUG: Failure to handle an antique SPSS file containing umlauts in variable names
Date: Thu, 23 Jan 2014 20:42:25 +0100

Hi everybody,

Same problem here with Spanish "o acoute" letter in variable name "región".

While executing

save translate
        /outfile='
latinobarometro1997_eng.csv'
        /type=csv
        /replace
        /missing=ignore
        /fieldnames
        /textoptions decimal=dot
        /textoptions delimiter='|'

I get:

writing to csv... error: `latinobarometro1997_eng.sav' near offset 0x6a88: Invalid variable name ‘REGI?N’.
-:3: error: Stopping syntax file processing here to avoid a cascade of dependent command failures.

The SAV file can be downloaded from http://www.latinobarometro.org/latContents.jsp

I work on Windows 7 via Cygwin with LANG=en_GB.utf8

Kind regards,
Przemek


2014/1/23 Müller, Andre <address@hidden>
Dear all,

I stumbled over a rather esoteric problem when dealing with an ooold sav file.
(Actually, I am led to believe the file was written when the archive migrated off it's mainframe...)

The export with pspp-0.8.1 fails like this:
error: `source.sav' near offset 0x608: Invalid variable name `V_P?NKT'.

SavConversion/pspp-export.syntax:2: error: Stopping syntax file processing here
to avoid a cascade of dependent command failures.

The variable name actually is "V_PÜNKT", and there are more Umlauts to come.
Trying to write a testcase, I found:
- When I create a file in UNICODE locale, all is well with the export.
- When I create a file in localcode locate, the export misinterprets the umlauts, but otherwise does the job.
- When, using SPSS, I save a copy of the offending file, that file gets handled properly.
- Just when using the old file as is, the export fails as described above.

So, there is an easy workaround for this problem, and it really only concerns a way old .sav file version.
In other words, this is not too important and it may well not be worth the effort of fixing this.

But I let you decide :-)
I will open a proper bug for this on request.

Due to licensing restrictions, I cannot provide a copy of the file,
but you can get it here:

https://dbk.gesis.org/dbksearch/download.asp?db=E&id=40582

The download requires a registration and acceptance of the TOC,
which in a nutshell requires you to use it for the purpose stated on download,
and do never ever distribute it to any third party. Or attach  (The rationale being that
no old, erroneous revisions are in circulation.)

Thank you,
Andre Müller

_______________________________________________
Bug-gnu-pspp mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-gnu-pspp


reply via email to

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