[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequence
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings |
Date: |
Mon, 28 Mar 2016 01:30:25 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #5, bug #47539 (project octave):
In file oct-stream.cc:
1535 else // Reading more than the whole buf; return it in buffer
1536 {
1537 retval = buffer;
1538 // FIXME -- read bufsize at a time
1539 int i;
1540 for (i = 0; i < size && ! eof (); i++)
1541 *buffer++ = get_undelim ();
1542 if (eof ())
1543 memset (buffer, 0, size - i);
I added a statement after line 1541 so that it now reads:
1541 *buffer++ = get_undelim ();
1542 *buffer = ' ';
1543 if (eof ())
1544 memset (buffer, 0, size - i);
This fixes the problem with printing Lars's large text file for me, but it
does not seem the most robust solution. Someone please check.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47539>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47539] textscan is broken, Lars Kindermann, 2016/03/26
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lachlan Andrew, 2016/03/26
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lachlan Andrew, 2016/03/26
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lars Kindermann, 2016/03/26
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, anonymous, 2016/03/27
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings,
anonymous <=
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lachlan Andrew, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lachlan Andrew, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lars Kindermann, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, anonymous, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Mike Miller, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Mike Miller, 2016/03/28