[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63469] sscanf duplicates last value when stri
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #63469] sscanf duplicates last value when string containing multiple values finished with space |
Date: |
Sun, 4 Dec 2022 23:17:55 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?63469>
Summary: sscanf duplicates last value when string containing
multiple values finished with space
Project: GNU Octave
Submitter: None
Submitted: Mon 05 Dec 2022 04:17:54 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: koerhen
Originator Email:
Open/Closed: Open
Release: other
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 05 Dec 2022 04:17:54 AM UTC By: Anonymous
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
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63469>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63469] sscanf duplicates last value when string containing multiple values finished with space,
anonymous <=