bugGNU Octave - Bugs: bug #41415, '...' mistaken as line...

 
 

bug #41415: '...' mistaken as line continuation in double quoted string with % or #

Submitter:  Markus Appel <mappel>
Submitted:  Fri 31 Jan 2014 06:32:34 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 03 Feb 2014 05:02:49 PM UTC, comment #2: 

I applied your changeset with a modified commit message:

  http://hg.savannah.gnu.org/hgweb/octave/rev/4d2e15abe5e7

Thanks.

John W. Eaton <jwe>
Group administrator
Fri 31 Jan 2014 11:18:14 PM UTC, comment #1: 

The attached patch should fix this issue and restores the behaviour of octave 3.6.x.


(file #30431)

Stefan Mahr <dac922>
Fri 31 Jan 2014 06:32:34 PM UTC, original submission:  

I had some double quoted strings in scripts containing "... %d" for use with sprintf, but since 3.8.0 three dots followed by % or # are mistaken as line continuation followed by a comment:


octave:1> s = " ... "
s =  ...
octave:2> s = " ... %"
warning: '...' continuations in double-quoted character strings are obsolete and will not be allowed in a future version of Octave; please use '\' instead
>
error: unterminated character string constant
parse error:

  syntax error

>>>
    ^

octave:2> s = " ... #"
warning: '...' continuations in double-quoted character strings are obsolete and will not be allowed in a future version of Octave; please use '\' instead
>
error: unterminated character string constant
parse error:

  syntax error

>>>
    ^


dev behaves the same, except it doesn't give the warning.

Markus Appel <mappel>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #30431:  line_continuation.patch added by dac922 (2KiB - text/x-patch)

 

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)
  • -email is unavailable- added by dac922 (Updated the item)
  • -email is unavailable- added by mappel (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-03 jwe StatusNone Fixed
        Open/ClosedOpen Closed
    2014-01-31 dac922 Attached File- Added line_continuation.patch, #30431

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code