[ http://issues.apache.org/jira/browse/STDCXX-2?page=all ] Martin Sebor updated STDCXX-2: ------------------------------ Summary: [MSVC] std::num_put bad formatting of 0.0 with precision and showpoint (was: MSVC std::num_put bad formatting of 0.0 with precision and showpoint) > [MSVC] std::num_put bad formatting of 0.0 with precision and showpoint > ---------------------------------------------------------------------- > > Key: STDCXX-2 > URL: http://issues.apache.org/jira/browse/STDCXX-2 > Project: STDCXX > Type: Bug > Components: 22. Localization > Versions: 4.1.2 > Environment: Windows/MSVC > Reporter: Martin Sebor > > When compiled with MSVC (any version), the program below aborts at runtime. > $ cat t.cpp && cl -D_RWCONFIG=11s_msvc_7_1 -Ic:/contrib/cygwin/build/sebor/dev-hal/include -I./../../../../include -Ic:/contrib/cygwin/build/sebor/dev-hal/examples/stdlib/manual/../include -Ic:/contrib/cygwin/build/sebor/dev-hal/include/ansi -I./../../../.. > -Ic:/contrib/cygwin/build/sebor/dev-hal -Ic:/contrib/cygwin/build/sebor/dev-hal/examples/stdlib/manual -I. -nologo -GX -MLd -W3 -Zi -GA -GR -GF -GZ -c t.cpp && link -nologo /NODEFAULTLIB:libcpd /debug /LIBPATH:./../../../../lib /OUT:t.exe t.obj std11s_msvc_7_1.lib user32.lib t.cpp && ./t.exe > #include > #include > int main () > { > std::ostringstream strm; > strm.setf (strm.showpoint); > strm.precision (2); > strm << 0.0; > assert ("0.0" == strm.str ()); > } > Assertion failed: "0.0" == strm.str (), file t.cpp, line 13 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira