|
From: | Lachlan Andrew |
Subject: | [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings |
Date: | Mon, 28 Mar 2016 09:06:57 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #7, bug #47539 (project octave): Here is a patch that fixes the random junk bug. Note that it is not a cumulative patch -- you need both it and file #36763. (Note to whoever commits this: please let me know if you'd prefer me to merge them.) The problem was that the code does its own buffering to make lookahead and backtracking faster, and the set of delimiters used to prevent overrun of that buffer was different from the ones used to separate the %s strings. It still has a bug: It returns an extra line containing only 1Ah (=26). I'll look into that next -- but it should be easy to work around in the mean time. (file #36784) _______________________________________________________ Additional Item Attachment: File name: bug_47539_textscan_buf_delim.cset Size:1 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47539> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |