The information in this article applies to:
SYMPTOMS
If you extract an integer of an invalid octal value from istrstream,
0 is extracted and the ios::failbit is not set. In addition, the
ios::fail() function returns FALSE, incorrectly indicating that the
istrstream is valid. RESOLUTIONUse the manipulators (dec, hex, oct, binary, text) explicitly to set the correct conversion base for the characters represented by the stream. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION
A scenario that produces an unexpected result, and which may also
reflect this problem, involves using the string "08" to initialize
the buffer used by the istrstream (or any string where the first
character is 0 and one of the following characters is greater than 7).
Sample Code
Additional query words: kbVC400bug 8.00 8.00c 9.00 9.10
Keywords : kbLangCPP kbVC kbVC100bug kbVC150bug kbVC151bug kbVC152bug kbVC200bug kbVC400bug kbVC410bug kbVC420bug kbVC500bug kbVC600bug |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |