public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "potswa at mac dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/45628] std::fstream::tellg invalidates I/O buffer
Date: Fri, 10 Sep 2010 17:25:00 -0000 [thread overview]
Message-ID: <20100910172534.12530.qmail@sourceware.org> (raw)
In-Reply-To: <bug-45628-18186@http.gcc.gnu.org/bugzilla/>
------- Comment #17 from potswa at mac dot com 2010-09-10 17:25 -------
(In reply to comment #16)
> Actually, however, I don't think we can really always call fseek(off * width)
> as the Standard want us to do. In a sense I'm happy because the change is gonna
> be less invasive, on the other hand I'm a bit puzzled.
Could you post a patch? I'm not sure what you mean by generalizing (off *
width), if off == 0 then width is irrelevant. If width < 0 then the only valid
value for off is 0. If width > 0, off != 0 then repositioning is the primary
effect.
The task is to call fseek(0,cur), and then subtract the number of bytes in the
put area plus the "external characters," right?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628
next prev parent reply other threads:[~2010-09-10 17:25 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-10 6:58 [Bug libstdc++/45628] New: " potswa at mac dot com
2010-09-10 7:09 ` [Bug libstdc++/45628] " potswa at mac dot com
2010-09-10 10:55 ` paolo dot carlini at oracle dot com
2010-09-10 12:09 ` paolo dot carlini at oracle dot com
2010-09-10 12:12 ` paolo dot carlini at oracle dot com
2010-09-10 12:21 ` paolo dot carlini at oracle dot com
2010-09-10 12:37 ` paolo dot carlini at oracle dot com
2010-09-10 14:06 ` don dot wakefield at gmail dot com
2010-09-10 14:40 ` paolo dot carlini at oracle dot com
2010-09-10 14:54 ` don dot wakefield at gmail dot com
2010-09-10 15:01 ` paolo dot carlini at oracle dot com
2010-09-10 15:15 ` don dot wakefield at gmail dot com
2010-09-10 15:19 ` paolo dot carlini at oracle dot com
2010-09-10 15:24 ` don dot wakefield at gmail dot com
2010-09-10 15:45 ` paolo dot carlini at oracle dot com
2010-09-10 16:00 ` potswa at mac dot com
2010-09-10 16:16 ` potswa at mac dot com
2010-09-10 17:12 ` paolo dot carlini at oracle dot com
2010-09-10 17:25 ` potswa at mac dot com [this message]
2010-09-10 17:29 ` paolo dot carlini at oracle dot com
2010-09-10 17:31 ` paolo dot carlini at oracle dot com
2010-09-10 17:36 ` potswa at mac dot com
2010-09-10 17:40 ` potswa at mac dot com
2010-09-10 17:42 ` paolo dot carlini at oracle dot com
2010-09-10 18:54 ` potswa at mac dot com
2010-09-10 19:01 ` paolo dot carlini at oracle dot com
2010-09-10 19:26 ` potswa at mac dot com
2010-09-10 19:30 ` potswa at mac dot com
2010-09-10 19:31 ` paolo dot carlini at oracle dot com
2010-09-10 19:34 ` paolo dot carlini at oracle dot com
2010-09-10 19:52 ` paolo dot carlini at oracle dot com
2010-09-10 20:34 ` potswa at mac dot com
2010-09-11 4:28 ` paolo dot carlini at oracle dot com
2010-09-11 4:49 ` potswa at mac dot com
2010-09-11 4:57 ` potswa at mac dot com
2010-09-11 9:22 ` paolo dot carlini at oracle dot com
2010-09-11 9:43 ` potswa at mac dot com
2010-09-11 10:03 ` paolo dot carlini at oracle dot com
2010-09-17 12:42 ` paolo dot carlini at oracle dot com
2010-09-17 17:52 ` potswa at mac dot com
2010-09-17 18:04 ` potswa at mac dot com
2010-09-17 18:53 ` paolo dot carlini at oracle dot com
2010-09-17 19:05 ` potswa at mac dot com
2010-09-17 19:10 ` paolo dot carlini at oracle dot com
2010-09-17 19:11 ` potswa at mac dot com
2010-09-17 19:17 ` paolo dot carlini at oracle dot com
2010-09-17 19:21 ` potswa at mac dot com
2010-09-17 19:26 ` paolo dot carlini at oracle dot com
2010-09-17 19:38 ` paolo dot carlini at oracle dot com
2010-09-17 19:46 ` potswa at mac dot com
2010-09-17 19:50 ` paolo dot carlini at oracle dot com
2010-09-17 19:57 ` potswa at mac dot com
2010-09-17 20:07 ` paolo dot carlini at oracle dot com
2010-09-17 21:11 ` don dot wakefield at gmail dot com
2010-09-17 21:22 ` paolo dot carlini at oracle dot com
2010-09-17 21:51 ` potswa at mac dot com
2010-09-17 21:59 ` paolo dot carlini at oracle dot com
2010-09-20 21:32 ` paolo dot carlini at oracle dot com
2010-09-22 19:41 ` paolo at gcc dot gnu dot org
[not found] <bug-45628-4@http.gcc.gnu.org/bugzilla/>
2010-09-25 14:47 ` paolo.carlini at oracle dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100910172534.12530.qmail@sourceware.org \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).