bugPSPP - Bugs: bug #15820, Can not read sav file

 
 

bug #15820: Can not read sav file

Submitted by:  None
Submitted on:  Mon 20 Feb 2006 08:20:01 PM UTC  
 
Category: System/Portable File I/OSeverity: 5 - Average
Status: FixedAssigned to: John Darrington <jmd>
Open/Closed: ClosedRelease: None
Effort: 0.00

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 17 Mar 2006 05:06:56 AM UTC, comment #4:

This has now been at least partially fixed.

PSPP now reads the offending file without error. Display of non-ascii characters seems to work on the postscript and html drivers, but they appear as '#' in the ascii driver.

Validity of variable names has been relaxed in sys-file-reader.c and dictionary.c ; Thus, tighter validity checking (based on the current locale) ought probably to be implemented in the syntax parser.

However, these issues are covered by bug #12984 so I'm treating this bug as closed.

A fix has been checked in to the CVS repository

John Darrington <jmd>
Project AdministratorIn charge of this item.
Fri 03 Mar 2006 12:32:59 PM UTC, comment #3:

Note, this is related to bug #12984 .

John Darrington <jmd>
Project AdministratorIn charge of this item.
Tue 21 Feb 2006 10:57:29 PM UTC, comment #2:

> PSPP needs to set and respect the LC_CTYPE locale category.


I'm a little nervous about doing that, because not every usage of the ctype functions should honor LC_CTYPE. If we start setting LC_CTYPE, we need to audit for that and change the ones that do not want to honor LC_CTYPE to use the gnulib modules designed for the purpose, such as c-ctype and c-strcase.

Ben Pfaff <blp>
Project Administrator
Tue 21 Feb 2006 12:20:30 PM UTC, comment #1:

Indeed this is caused by non-ascii characters in variable names and/or strings.

PSPP needs to set and respect the LC_CTYPE locale category.

John Darrington <jmd>
Project AdministratorIn charge of this item.
Mon 20 Feb 2006 08:20:01 PM UTC, original submission:

PSPP> get /file='databas.sav'
>
error: corrupt system file: databas.sav: position 1: Variable name begins with
invalid character.
warning: This command not executed.
warning: The rest of this command has been discarded.

Possible cause: åäö-characters in file.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #1906:  databas.sav added by None (17KiB - application/octet-stream - The file that PSPP can not load.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 17 Mar 2006 05:06:56 AM UTCjmdOpen/ClosedOpen=>Closed
Fri 17 Mar 2006 05:06:55 AM UTCjmdStatusNone=>Fixed
Tue 21 Feb 2006 12:20:30 PM UTCjmdAssigned toNone=>jmd
Mon 20 Feb 2006 08:20:01 PM UTCNoneAttached File-=>Added databas.sav, #3426

Back to the top


Powered by Savane 3.1-cleanup1