locale_facets.tcc (num_put<>::_M_insert_int): When ios_base::showpos and the type...
authorPaolo Carlini <pcarlini@suse.de>
Tue, 27 Nov 2007 01:59:41 +0000 (01:59 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 27 Nov 2007 01:59:41 +0000 (01:59 +0000)
commitcded5e6bd50c24ac40fc2d86c35ee627300789f3
treec09cb8fb9354473ffb8723ab94695ab22ba1e585
parentaac47cd15451ddc8ef2141386478f27431cb10bb
locale_facets.tcc (num_put<>::_M_insert_int): When ios_base::showpos and the type is signed and the value is zero, prepend +.

2007-11-26  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (num_put<>::_M_insert_int): When
ios_base::showpos and the type is signed and the value is zero,
prepend +.
* testsuite/22_locale/num_put/put/char/12.cc: New.
* testsuite/22_locale/num_put/put/wchar_t/12.cc: Likewise.

From-SVN: r130460
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/22_locale/num_put/put/char/12.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/12.cc [new file with mode: 0644]