[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
example,
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
value
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:
<http://savannah.gnu.org/bugs/?49454>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49454] strread commentstyle shell doesn't work as expected, anonymous, 2016/10/27
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected,
Rik <=
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Rik, 2016/10/27
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/27
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Rik, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Rik, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/29