This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tellg modifying the state of an input file stream


Ivan Kolev wrote:

There is one possibility for the problem to be in generic code and that it hasn't been spotted until now

there isn't...


- it seems the problem is related to the \r\n line endings on Windows

... and that's why: there is no mention in the C++ Standard of \r\n line endings and such. Is something is going wrong has to do with the way MingW deals with those sequences, at the C library level too. Honestly, however, I think something is badly broken there, not a simple, localized, bug, because nobody could use C++ on MingW, otherwise. Because of that, I would also not exclude something broken on your system. Again, please do your check and get in touch with the MingW maintainers, first.


Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]