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

 
 

bug #15820: Can not read sav file

Submitter:  None
Submitted:  Mon 20 Feb 2006 08:20:01 PM UTC
   
 
Category:  System/Portable File I/O Severity:  5 - Average
Status:  Fixed Assigned to:  jmd
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
Fri 03 Mar 2006 12:32:59 PM UTC, comment #3: 

Note, this is related to bug #12984 .

John Darrington <jmd>
Group administrator
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>
Group 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>
Group administrator
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 Files:
   
   
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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-03-17 jmd Open/ClosedOpen Closed
2006-03-17 jmd StatusNone Fixed
2006-02-21 jmd Assigned toNone jmd
2006-02-20 None Attached File- Added databas.sav, #3426

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code