bugGNU Octave - Bugs: bug #30997, sscanf and %[...] format : return...

 
 

bug #30997: sscanf and %[...] format : return wrong result

Submitted by:  hydromer <hydromer>
Submitted on:  Wed 08 Sep 2010 04:31:21 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: hydromerOpen/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 14 Sep 2010 06:00:23 AM UTC, comment #2:

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/da355a1a6d44

John W. Eaton <jwe>
Project Administrator
Wed 08 Sep 2010 05:10:08 PM UTC, comment #1:

Another example :

_ octave> sscanf('azerty', '%[azert]')
_ ans = azert
_ octave> sscanf('azerty', '%[azerty]')
_ ans =

The expected result of the second instruction is : 'azerty'.

hydromer <hydromer>
Wed 08 Sep 2010 04:31:21 PM UTC, original submission:

Hi,

The sscanf function return an empty result with some patterns :

_ octave> sscanf('azerty', '%[^y]')
_ ans = azert
_ octave> sscanf('azerty', '%[^u]')
_ ans =

The expected result of the second instruction is : 'azerty'.

hydromer <hydromer>

 

(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 jwe (Posted a comment)
  • -unavailable- added by hydromer (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 14 Sep 2010 06:00:23 AM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1