------- Comment #8 from don dot wakefield at gmail dot com 2010-09-10 14:54 ------- Paolo, yes, _M_file.seekoff(0,cur) would return the current physical file position, and then filebuf::seekoff would adjust the returned pos_type to reflect the position within the *logical* file, framed by the buffer and pointed to by gptr().
As for the mechanics of width*off, I confess that locale issues leave me completely befuddled, so I won't try to address that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628