Mercurial > hg > octave-terminal
changeset 2213:c4a887694274
[project @ 1996-05-16 04:13:28 by jwe]
author | jwe |
---|---|
date | Thu, 16 May 1996 04:13:28 +0000 |
parents | fa855f4aae30 |
children | b5c7309168f3 |
files | src/oct-stream.cc |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/oct-stream.cc +++ b/src/oct-stream.cc @@ -1108,8 +1108,15 @@ const scanf_format_elt *elt = fmt_list.first (); + ios::fmtflags flags = is.flags (); + for (;;) { + // Restore format flags in case we had to change them (note + // 'c' conversion below). + + is.setf (flags); + if (elt) { if (nr > 0 && nc > 0 && count == max_size) @@ -1163,8 +1170,11 @@ } break; + case 'c': + is.unsetf (ios::skipws); + // Fall through... + case 's': - case 'c': { char tmp;