[Top][All Lists]

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

[Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as e

From: Rik
Subject: [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected
Date: Thu, 27 Oct 2016 16:31:12 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #49454 (project octave):

                 Summary: strread commentstyle shell doesn't work as expected
=> strread commentstyle doesn't work as expected


Follow-up Comment #1:

Confirmed.  The problem is general to any of the commentstyle options.  For

strread ("hello%foo\nworld", "%s", 'commentstyle', 'matlab'

also returns just "hello".

The strread function is in an m-file in scripts/io so it is easy enough to
debug.  The problem is that the End-of-Line character in the variable eol_char
is empty.  Starting at around line 325 in strread.m

  ## Remove comments in str
  if (comment_flag)
    ## Expand 'eol_char' here, after option processing which may have set
    comment_end = strrep (comment_end, "eol_char", eol_char);

I'm adding Philip to the CC list since he understands this function better
than anyone else.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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