bugGNU Octave - Bugs: bug #34183, 'save' inside function fills...

 
 

bug #34183: 'save' inside function fills 'argn' with binary 0

Submitted by:  Andreas Weber <andy1978>
Submitted on:  Wed 31 Aug 2011 04:57:23 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 1 - LaterItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 27 Jun 2013 03:30:09 AM UTC, comment #2:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/787de2f144d9). Pull from Mercurial to get the latest code or wait for the 3.8 release of Octave.

Rik <rik5>
Project Administrator
Sat 03 Sep 2011 04:11:23 AM UTC, comment #1:

Wow, what an esoteric issue. I can confirm this on a recent development tip. One would hope that automatic variables created by Octave would respect the string_fill_char() setting (default = space) but I guess that isn't always true.

I'm going to lower the priority since there are many possible workarounds. Some possible suggestions

1) Use a more powerful text editor
2) save only the variables you need
3) save in a binary format, re-read into Octave and delete any variables like argn that you dislike, save in text format again

Rik <rik5>
Project Administrator
Wed 31 Aug 2011 04:57:23 PM UTC, original submission:

hg id
b646413c3d0e+ tip

A call of 'save' without arguments even saves the automatic generated var 'argn'.
The problem with this is: If there is a string parameter present, the remaining space is filled with binary zeros (see hd output at the end) and some text editors (for ex. gedit) doesn't open the file.

=== cat output===

hd output
Andreas Weber <andy1978>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by andy1978 (Submitted the item)
  •  

    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 project members 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
    Thu 27 Jun 2013 03:30:09 AM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sat 03 Sep 2011 04:11:36 AM UTCrik5StatusNone=>Confirmed
    Sat 03 Sep 2011 04:11:23 AM UTCrik5Priority5 - Normal=>1 - Later

    Back to the top


    Powered by Savane 3.1-cleanup1