bugGNU Octave - Bugs: bug #44750, Incorrect output in...

 
 

bug #44750: Incorrect output in textscan/strread with trailing delimiter

Submitted by:  Guillaume <gyom>
Submitted on:  Mon 06 Apr 2015 06:23:01 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: GuillaumeOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 06 Apr 2015 09:33:25 PM UTC, comment #3:

Works fine now, thanks Philip!

Guillaume <gyom>
Mon 06 Apr 2015 09:10:55 PM UTC, comment #2:

Fixed in this cs:
http://hg.savannah.gnu.org/hgweb/octave/rev/f68c3a62e42c

MultipleDelimsAsOne code has never seen much testing and comparison with Matlab. After a bit of debugging I've just added a condition to the if stmt you indicated. All existing tests passed.

Philip Nienhuis <philipnienhuis>
Project Member
Mon 06 Apr 2015 08:21:06 PM UTC, comment #1:

Confirmed.

I'll have a look.

strread.m seems to behave properly w/o multipledelimsasone:

but with it:

OS -> Any

Philip Nienhuis <philipnienhuis>
Project Member
Mon 06 Apr 2015 06:23:01 PM UTC, original submission:

This command returns {'home'} instead of {'home','foo'}. The correct output is returned when the trailing delimiter is removed: '/home/foo'.

I could track down the problem in strread>split_by:

but I am not sure of what the right fix would be without breaking other situations.

Guillaume <gyom>

 

(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 gyom (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
    Mon 06 Apr 2015 09:10:55 PM UTCphilipnienhuisStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 06 Apr 2015 08:21:06 PM UTCphilipnienhuisStatusNone=>Confirmed
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1