bugGNU Octave - Bugs: bug #56917, textscan does not remove quotation...

 
 

bug #56917: textscan does not remove quotation mark when conversion specifier is %q

Submitter:  None
Submitted:  Tue 17 Sep 2019 08:47:43 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 18 Sep 2019 12:59:42 AM UTC, comment #2: 

I fixed the bug on the development branch in this changeset (https://hg.savannah.gnu.org/hgweb/octave/rev/17b915ad4b73).

This will be a part of the 6.1 release of Octave.

Closing report.

Rik <rik5>
Group administrator
Tue 17 Sep 2019 10:05:34 PM UTC, comment #1: 

Confirmed.  I verified on Linux with the development branch of Octave.  It is only the last instance which suffers this problem.  See example below where there are three matching patterns.


y = textscan('"a,a","b","c"','%q','Delimiter',',')
y =
{
  [1,1] =
  {
    [1,1] = a,a
    [2,1] = b
    [3,1] = c"
  }



Rik <rik5>
Group administrator
Tue 17 Sep 2019 08:47:43 PM UTC, original submission:  

In the following example, textscan does not remove one of the closing quotation marks:


>> textscan('"a,a","a"','%q','Delimiter',',')
ans =
{
  [1,1] =
  {
    [1,1] = a,a
    [2,1] = a"
  }

}


The value of the output should have been:


{
  [1,1] =
  {
    [1,1] = a,a
    [2,1] = a
  }

}


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 rik5 (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-18 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
        Release5.1.0 dev
    2019-09-17 rik5 StatusNone Confirmed
        Release4.4.0 5.1.0
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code