Mercurial > octave
changeset 22694:b100f76b991d
strread.m: Correctly process "commentstyle" on Mac platform (bug #49454).
* strread.m: Set cmt_eol character to "\r" if running on Mac platform.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 28 Oct 2016 08:53:03 -0700 |
parents | 644dcdfa0348 |
children | d6164341b64d |
files | scripts/io/strread.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/io/strread.m Fri Oct 28 12:12:59 2016 +0200 +++ b/scripts/io/strread.m Fri Oct 28 08:53:03 2016 -0700 @@ -236,8 +236,8 @@ ## Parse options. First initialize defaults comment_flag = false; open_comment = false; - ## Default line ending. FIXME: we ignore old Macintosh CR eol. - cmt_eol = "\n"; + ## Default line ending. + cmt_eol = ifelse (ismac (), "\r", "\n"); delimiter_str = ""; empty_str = ""; eol_char = "";