bugPSPP - Bugs: bug #35825, incomplete ENCODING subcommand on...

 
 

bug #35825: incomplete ENCODING subcommand on PRINT

Submitted by:  None
Submitted on:  Tue Mar 13 12:03:43 2012  
 
Category: System/Portable File I/OSeverity: 5 - Average
Status: FixedAssigned to: None
Open/Closed: ClosedRelease: Before 0.8.0
Effort: 0.00

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Tue Dec 25 01:15:54 2012, comment #12:

I pushed a fix.

Ben Pfaff <blp>
Project Administrator
Mon Dec 24 08:08:26 2012, comment #11:

I've made significant progress on encoding support for PRINT. I'm just debugging one remaining bug.

Ben Pfaff <blp>
Project Administrator
Tue Nov 27 06:38:54 2012, comment #10:

I thought that I hadn't fixed this, but in fact ENCODING now works OK on DATA LIST, as far as I can tell. It's the PRINT command where ENCODING isn't fully implemented.

I've changed the summary to indicate that.

Ben Pfaff <blp>
Project Administrator
Sat Oct 13 22:02:58 2012, comment #9:

>Has this one now been fixed?


No, I haven't taken care of it yet.

Ben Pfaff <blp>
Project Administrator
Fri Oct 12 09:57:34 2012, comment #8:

Has this one now been fixed?

John Darrington <jmd>
Project Administrator
Mon Mar 19 08:25:39 2012, comment #7:

Great i'll give it a try when you're ready.

Bernd Jänichen <bjaenichen>
Mon Mar 19 04:46:11 2012, comment #6:

The "lexer" branch at git://benpfaff.org/pspp fixes the problem, but it needs some polishing before it is ready for master.

Ben Pfaff <blp>
Project Administrator
Sat Mar 17 19:03:38 2012, comment #5:

Ah, it seems that the work on encodings is simply incomplete. I have a local branch that has a start. I'll try to get it up to speed.

Ben Pfaff <blp>
Project Administrator
Sat Mar 17 18:24:33 2012, comment #4:

Bernd, thank you for the explanation. I see the problem, too. I'll try to solve it.

Ben Pfaff <blp>
Project Administrator
Wed Mar 14 13:00:37 2012, comment #3:

Ok, i'll give it a try with the master.

The encoding param in "DATA LIST FREE TABLE FILE ... ENCODING" command isn't recognized at all.

For example, if i load a datafile encoded in ISO-8859-15 the characters 'äöüß' are broken in the resulting .sav file when opening it in SPSS on a windows machine that has that codepage enabled.

I'll attach example files to let you reproduce that problem:

pspp --syntax-encoding=ISO-8859-15 --no-output pspp_iso_deffile

Thx,
Bernd

Bernd Jänichen <bjaenichen>
Wed Mar 14 05:21:46 2012, comment #2:

> Creation of portable files ends up in an infinite loop.


This bug was already fixed back on February 6. The samples you supplied work fine with PSPP from "master".

I've changed the title of the bug report to reflect the other bug you reported. Can you describe the bug that you see there?

Thanks,

Ben.

Ben Pfaff <blp>
Project Administrator
Tue Mar 13 12:10:23 2012, comment #1:

Sorry, i didn't add my mailaddress when creating this issue it's bernd.jaenichen@questback.de.

Bernd Jänichen <bjaenichen>
Tue Mar 13 12:03:43 2012, original submission:

Creation of portable files ends up in an infinite loop.

How to reproduce (Needed input files are attached):

pspp --syntax-encoding=UTF-8 --no-output pspp_utf8_deffile

I've attached a patch fixing this issue maybe it helps to identify the problem.

The patch also contains a fix for Input/Output encoding of data-files loaded by "DATA LIST FREE TABLE FILE ... ENCODING" command.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #25361:  pspp_iso_deffile added by bjaenichen (4kB - application/octet-stream)
file #25362:  pspp_iso_datafile added by bjaenichen (799B - application/octet-stream)
file #25351:  pspp_patch_utf8.diff added by None (3kB - text/x-diff)
file #25352:  pspp_utf8_datafile added by None (1kB - application/octet-stream)
file #25353:  pspp_utf8_deffile added by None (3kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jmd (Posted a comment)
  • -unavailable- added by bjaenichen (Posted a comment)
  • -unavailable- added by blp (Posted a comment)
  • -unavailable- added by bjaenichen (i created this issue)
  •  

    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 14 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Dec 25 01:15:54 2012blpStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue Nov 27 06:38:54 2012blpSummarywrong encoding with DATA LIST FREE ENCODING=...=>incomplete ENCODING subcommand on PRINT
    Mon Nov 26 20:38:04 2012blpReleaseNone=>Before 0.8.0
    Sat Mar 17 18:24:33 2012blpStatusNone=>Confirmed
    Wed Mar 14 13:01:19 2012bjaenichenAttached File-=>Added pspp_iso_deffile, #25361
      Attached File-=>Added pspp_iso_datafile, #25362
    Wed Mar 14 05:21:46 2012blpCategoryOutput Driver=>System/Portable File I/O
      SummaryInfinite loop in por-file-writer.c=>wrong encoding with DATA LIST FREE ENCODING=...
    Tue Mar 13 12:11:21 2012bjaenichenCarbon-CopyRemoved 87494=>-
    Tue Mar 13 12:11:05 2012bjaenichenCarbon-Copy-=>Added bjaenichen
    Tue Mar 13 12:03:43 2012NoneAttached File-=>Added pspp_patch_utf8.diff, #25351
      Attached File-=>Added pspp_utf8_datafile, #25352
      Attached File-=>Added pspp_utf8_deffile, #25353

    Back to the top


    Powered by Savane 3.1-cleanup