You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Andrew Black (JIRA)" <ji...@apache.org> on 2007/08/27 19:55:31 UTC
[jira] Updated: (STDCXX-497) [MSVC 7.1] std::num_put bad formatting
of 0.0 with precision and showpoint
[ https://issues.apache.org/jira/browse/STDCXX-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Black updated STDCXX-497:
--------------------------------
Fix Version/s: 4.2.1
Affects Version/s: 4.1.2
4.1.4
I suspect this issue has been present a long time and isn't critical to the 4.2.0 release. Scheduling for 4.2.1
> [MSVC 7.1] std::num_put bad formatting of 0.0 with precision and showpoint
> --------------------------------------------------------------------------
>
> Key: STDCXX-497
> URL: https://issues.apache.org/jira/browse/STDCXX-497
> Project: C++ Standard Library
> Issue Type: Bug
> Affects Versions: 4.1.2, 4.1.3, 4.1.4
> Environment: MSVC 7.1
> Reporter: Martin Sebor
> Assignee: Farid Zaripov
> Fix For: 4.2.1
>
>
> Moved from Rogue Wave Bugzilla: http://bugzilla.cvo.roguewave.com/show_bug.cgi?id=1550
> $ 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 <cassert>
> #include <sstream>
> 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.
-
You can reply to this email to add a comment to the issue online.