octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62723] sscanf return an error when there is n


From: Dureisseix
Subject: [Octave-bug-tracker] [bug #62723] sscanf return an error when there is not
Date: Fri, 8 Jul 2022 11:59:22 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62723>

                 Summary: sscanf return an error when there is not
                 Project: GNU Octave
               Submitter: dureisseix
               Submitted: ven. 08 juil. 2022 15:59:21 UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 7.1.0
         Discussion Lock: Any
        Operating System: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: ven. 08 juil. 2022 15:59:21 UTC By: Dureisseix <dureisseix>
Following bug report #56396 (no error when there is one) but in the counter
case, I noticed an error returned in version 7.1.0 on MacOS for the following
minimum working example:

clear all
[line,count,errmsg,nextindex] = sscanf(' ,1 ',' %s ',1)
[line,count,errmsg,nextindex] = sscanf(' ,1 aa',' %s ',1)
[line,count,errmsg,nextindex] = sscanf(" ,1 "," %s ",1)
[line,count,errmsg,nextindex] = sscanf(" ,1 aa"," %s ",1)

the output is

line = ,1
count = 1
errmsg = sscanf: format failed to match
nextindex = 5
line = ,1
count = 1
errmsg = 
nextindex = 5
line = ,1
count = 1
errmsg = sscanf: format failed to match
nextindex = 5
line = ,1
count = 1
errmsg = 
nextindex = 5

Note the two error messages "sscanf: format failed to match" that seem
strange.
For information the same example works correctly (void error message) on
version 5.2.0 on a windows machine, and also with matlab R2022a.

Thanks in advance.








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62723>

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]