This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/49269] wifstream::tellg reports invalid stream position after reading single wchar_t character with NullCodecvt


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49269

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-26 22:30:15 UTC ---
Granted, the Standard leaves quite a bit of room for implementation defined
behavior in this area, but for sure this codecvt is not going to work with our
implementation for what you want (and never did). First, do_always_noconv
returns true, thus you are already screwed, because this implies that all the
other codecvt members will not be used at all. Even if you fix that, do_in
still needs work, because, still according to the standard, if it returns
noconv, it means _To and _E are the same type, something certainly not true
here.


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