From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Kosnik To: pme@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: libstdc++/2071 Date: Mon, 11 Jun 2001 19:06:00 -0000 Message-id: <20010612020602.3817.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00453.html List-Id: The following reply was made to PR libstdc++/2071; it has been noted by GNATS. From: Benjamin Kosnik To: rittle@labs.mot.com Cc: gcc-gnats@gcc.gnu.org Subject: libstdc++/2071 Date: Mon, 11 Jun 2001 18:56:05 -0700 (PDT) damn i'm dumb: { fseek(_M_cfile, __off, __way); return ftell(_M_cfile); } template streamoff __basic_file<_CharT>::seekpos(streamoff __pos, ios_base::openmode /*__mode*/) { fseek(_M_cfile, __pos, ios_base::beg); return ftell(_M_cfile); } these need to have ios_base::openmode translated to SEEK_SET, SEEK_CUR, SEEK_END this is probably the problem. i've got to go right now but this is probably where you should start I can't believe this