FIX: The stream operator (>>) does not correctly handle an integer-comma combination in Visual C++ 2005 (915697)



The information in this article applies to:

  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Express Edition
  • Microsoft Visual C++ 2005 Express Edition

SYMPTOMS

The stream operator (>>) does not correctly handle an integer-comma combination in Microsoft Visual C++ 2005. If you have a buffer defined and then you try to stream the integer into an integer variable, the variable is not updated. For example, this behavior may occur when you use the following code example.
int nTmp=-3;
char cTmp1= '0';
char cTmp2= '0';
char buf[]= "{5, "

istringstream ist(buf);
ist >> cTmp1;
ist >> nTmp;
ist >> cTmp2;

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio 2005 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

No prerequisites are required.

Restart information

You do not have to restart the computer after you apply this hotfix.

Registry information

You do not have to change the registry after you apply this hotfix.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Visual Studio 2005 for 32-bit systems

File nameFile versionFile sizeDateTimePlatform
8.0.50727.91.policyNot Applicable72223-Mar-200611:14
Amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_3fef51e7.manifestNot Applicable1,87023-Mar-200616:07
Amd64_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_296d9886.manifestNot Applicable1,87823-Mar-200616:07
Ia64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_3d4052a7.manifestNot Applicable1,86923-Mar-200616:24
Ia64_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_26be9946.manifestNot Applicable1,87723-Mar-200616:24
IstreamNot Applicable36,87823-Mar-200612:47
Libcmt.libNot Applicable548,26823-Mar-200612:47
Libcmtd.libNot Applicable775,60823-Mar-200612:47
Libcpmt.libNot Applicable2,459,69423-Mar-200612:48
Libcpmtd.libNot Applicable2,589,31423-Mar-200612:48
Microsoft.vc80.crt.manifestNot Applicable52223-Mar-200610:48
Microsoft.vc80.debugcrt.manifestNot Applicable53123-Mar-200617:29
Microsoft_vc80_atl_x86.msmNot Applicable146,43223-Mar-200619:46
Microsoft_vc80_atl_x86_ia64.msmNot Applicable167,42423-Mar-200619:46
Microsoft_vc80_atl_x86_x64.msmNot Applicable123,90423-Mar-200619:46
Microsoft_vc80_crt_x86.msmNot Applicable621,05623-Mar-200619:46
Microsoft_vc80_crt_x86_ia64.msmNot Applicable2,476,03223-Mar-200619:46
Microsoft_vc80_crt_x86_x64.msmNot Applicable1,799,68023-Mar-200619:46
Microsoft_vc80_debugcrt_x86.msmNot Applicable2,161,15223-Mar-200619:46
Microsoft_vc80_debugcrt_x86_ia64.msmNot Applicable3,983,87223-Mar-200619:47
Microsoft_vc80_debugcrt_x86_x64.msmNot Applicable2,287,10423-Mar-200619:46
Microsoft_vc80_debugmfc_x86.msmNot Applicable4,260,86423-Mar-200619:47
Microsoft_vc80_debugmfc_x86_ia64.msmNot Applicable9,189,88823-Mar-200619:48
Microsoft_vc80_debugmfc_x86_x64.msmNot Applicable4,863,48823-Mar-200619:47
Microsoft_vc80_debugopenmp_x86.msmNot Applicable113,66423-Mar-200619:48
Microsoft_vc80_debugopenmp_x86_ia64.msmNot Applicable151,04023-Mar-200619:48
Microsoft_vc80_debugopenmp_x86_x64.msmNot Applicable110,08023-Mar-200619:48
Microsoft_vc80_mfcloc_x86.msmNot Applicable140,80023-Mar-200619:49
Microsoft_vc80_mfcloc_x86_ia64.msmNot Applicable137,72823-Mar-200619:49
Microsoft_vc80_mfcloc_x86_x64.msmNot Applicable136,70423-Mar-200619:49
Microsoft_vc80_mfc_x86.msmNot Applicable1,595,39223-Mar-200619:48
Microsoft_vc80_mfc_x86_ia64.msmNot Applicable5,818,88023-Mar-200619:49
Microsoft_vc80_mfc_x86_x64.msmNot Applicable1,920,51223-Mar-200619:49
Microsoft_vc80_openmp_x86.msmNot Applicable102,40023-Mar-200619:49
Microsoft_vc80_openmp_x86_ia64.msmNot Applicable128,00023-Mar-200619:49
Microsoft_vc80_openmp_x86_x64.msmNot Applicable108,03223-Mar-200619:49
Msdia80.dll8.0.50727.91621,56823-Mar-200614:25x86
Msvcm80.dll8.0.50727.91516,09623-Mar-200610:57x64
Msvcm80d.dll8.0.50727.911,015,80823-Mar-200611:14x86
Msvcmrt.libNot Applicable967,39023-Mar-200611:13
Msvcmrtd.libNot Applicable1,273,21823-Mar-200617:28
Msvcp80.dll8.0.50727.911,388,03223-Mar-200611:01IA-64
Msvcp80d.dll8.0.50727.913,229,18423-Mar-200611:00IA-64
Msvcprt.libNot Applicable1,482,03623-Mar-200611:13
Msvcprtd.libNot Applicable1,656,74823-Mar-200617:29
Msvcr80.dll8.0.50727.911,485,82423-Mar-200610:58IA-64
Msvcr80d.dll8.0.50727.911,171,45623-Mar-200611:14x86
Msvcrt.libNot Applicable48,36823-Mar-200612:47
Msvcrtd.libNot Applicable8,88423-Mar-200612:47
Msvcurt.libNot Applicable6,286,44423-Mar-200617:28
Msvcurtd.libNot Applicable6,788,39223-Mar-200617:29
OstreamNot Applicable32,10423-Mar-200611:14
Policy_8_0_microsoft_vc80_atl_x86.msmNot Applicable75,77623-Mar-200619:46
Policy_8_0_microsoft_vc80_atl_x86_ia64.msmNot Applicable75,77623-Mar-200619:46
Policy_8_0_microsoft_vc80_atl_x86_x64.msmNot Applicable75,77623-Mar-200619:46
Policy_8_0_microsoft_vc80_crt_x86.msmNot Applicable75,77623-Mar-200619:46
Policy_8_0_microsoft_vc80_crt_x86_ia64.msmNot Applicable75,77623-Mar-200619:46
Policy_8_0_microsoft_vc80_crt_x86_x64.msmNot Applicable75,77623-Mar-200619:46
Policy_8_0_microsoft_vc80_debugcrt_x86.msmNot Applicable75,77623-Mar-200619:46
Policy_8_0_microsoft_vc80_debugcrt_x86_ia64.msmNot Applicable75,77623-Mar-200619:47
Policy_8_0_microsoft_vc80_debugcrt_x86_x64.msmNot Applicable75,77623-Mar-200619:47
Policy_8_0_microsoft_vc80_debugmfc_x86.msmNot Applicable75,77623-Mar-200619:47
Policy_8_0_microsoft_vc80_debugmfc_x86_ia64.msmNot Applicable75,77623-Mar-200619:48
Policy_8_0_microsoft_vc80_debugmfc_x86_x64.msmNot Applicable75,77623-Mar-200619:47
Policy_8_0_microsoft_vc80_debugopenmp_x86.msmNot Applicable75,77623-Mar-200619:48
Policy_8_0_microsoft_vc80_debugopenmp_x86_ia64.msmNot Applicable75,77623-Mar-200619:48
Policy_8_0_microsoft_vc80_debugopenmp_x86_x64.msmNot Applicable75,77623-Mar-200619:48
Policy_8_0_microsoft_vc80_mfcloc_x86.msmNot Applicable75,77623-Mar-200619:49
Policy_8_0_microsoft_vc80_mfcloc_x86_ia64.msmNot Applicable75,77623-Mar-200619:49
Policy_8_0_microsoft_vc80_mfcloc_x86_x64.msmNot Applicable75,77623-Mar-200619:49
Policy_8_0_microsoft_vc80_mfc_x86.msmNot Applicable75,77623-Mar-200619:49
Policy_8_0_microsoft_vc80_mfc_x86_ia64.msmNot Applicable75,77623-Mar-200619:49
Policy_8_0_microsoft_vc80_mfc_x86_x64.msmNot Applicable75,77623-Mar-200619:49
Policy_8_0_microsoft_vc80_openmp_x86.msmNot Applicable75,77623-Mar-200619:49
Policy_8_0_microsoft_vc80_openmp_x86_ia64.msmNot Applicable75,77623-Mar-200619:49
Policy_8_0_microsoft_vc80_openmp_x86_x64.msmNot Applicable75,77623-Mar-200619:49
Tidtable.cNot Applicable21,91123-Mar-200611:14
Tzset.cNot Applicable23,19023-Mar-200611:14
Vcredist_ia64.exe2.0.50727.916,538,75223-Mar-200616:32x86
Vcredist_x64.exe2.0.50727.913,156,99223-Mar-200616:14x86
Vcredist_x86.exe2.0.50727.912,652,67223-Mar-200620:54x86
X86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_0de56c07.manifestNot Applicable1,86823-Mar-200619:17
X86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_f763b2a6.manifestNot Applicable1,87623-Mar-200619:17

Visual Studio 2005 for Itanium systems

File nameFile versionFile sizeDateTimePlatform
IstreamNot Applicable32,64623-Mar-200611:01
Libcmt.libNot Applicable10,865,41223-Mar-200611:01
Libcmtd.libNot Applicable13,832,92223-Mar-200611:01
Libcpmt.libNot Applicable8,197,06423-Mar-200611:01
Libcpmtd.libNot Applicable11,606,40023-Mar-200611:01
Microsoft.vc80.crt.manifestNot Applicable52323-Mar-200610:40
Msdia80.dll8.0.50727.912,084,35223-Mar-200612:18IA-64
Msvcmrt.libNot Applicable1,235,87023-Mar-200611:01
Msvcmrtd.libNot Applicable1,273,21823-Mar-200611:01
Msvcprt.libNot Applicable1,959,62423-Mar-200611:01
Msvcprtd.libNot Applicable2,153,26423-Mar-200611:01
Msvcrt.libNot Applicable1,166,39023-Mar-200611:01
Msvcrtd.libNot Applicable1,201,25023-Mar-200611:01
Msvcurt.libNot Applicable6,286,44423-Mar-200611:01
Msvcurtd.libNot Applicable6,963,23423-Mar-200611:01
OstreamNot Applicable29,05223-Mar-200611:01
Tidtable.cNot Applicable21,91123-Mar-200611:01
Tzset.cNot Applicable23,19023-Mar-200611:01

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


Modification Type:MinorLast Reviewed:7/26/2006
Keywords:kbfix kbBug kbHotfixServer kbQFE kbpubtypekc KB915697 kbAudDeveloper kbAudITPRO