by petervn » 13 Oct 2009, 02:44
I am evaluating the StreamConverter class for converting UTF-8 encoded file into UTF-16. The conversion itself works fine, but I ran into problem trying to get a current stream position. The position returned with tellg() turned out to be invalid (-1). tellg() invokes streambuf::pubseekoff() which calls a virtual function streambuf::seekoff. The StreamConverter uses default implementation of seekof which always returns an invalid position. Is this a implementation bug in the StreamConverter ?