bugGNU Octave - Bugs: bug #63468, sscanf duplicates last value when...

 
 

bug #63468: sscanf duplicates last value when string containing multiple values finished with space

Submitter:  None
Submitted:  Mon 05 Dec 2022 04:17:15 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  koerhen Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * other
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 Dec 2022 04:39:34 AM UTC, comment #2: 

Duplicate of bug #63467

John W. Eaton <jwe>
Group administrator
Mon 05 Dec 2022 04:23:05 AM UTC, comment #1: 

sorry duplicate

Anonymous
Mon 05 Dec 2022 04:17:15 AM UTC, original submission:  

With the current master version
self build 9.0 from this Thursday
hg log -l1 changeset:   31598:53fee053d962 # HG changeset patch)

(s)scanf wrongly duplicates the last value of a string containing multiple values and ending with a space.
Without a space at the end there is no duplication.

(I guess error is introduced with changeset 31542:2f08a53e0a23)


sscanf ('2 3 ', '%f')
ans =

   2
   3
   3




sscanf ('2 3', '%f')
ans =

   2
   3




Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  •  

    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 group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-05 jwe StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code