[PATCH] Fix a num_put::_M_widen_int corner case
Paolo Carlini
pcarlini@unitus.it
Fri Sep 27 11:37:00 GMT 2002
Hi,
I discovered this bug while analyzing libstdc++/7989 (not a bug).
Currently, we seg fault on the testcases below, since, when
printing a grouped oct or hex zero even if showbase is true the
usual 0, 0x or 0X prefixes do not appear.
The patch was regression tested on x86-linux. In case, ok for
3.2.1 too, or not?
Ciao, Paolo.
/////////////
2002-09-27 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (num_put::_M_widen_int):
Deal correctly with grouped, showbased (oct or hex) zero.
* testsuite/22_locale/num_put_members_char.cc: Add test05.
* testsuite/22_locale/num_put_members_wchar_t.cc: Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_gzoh
Type: application/x-java-vm
Size: 3607 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20020927/301fbd1e/attachment.bin>
More information about the Libstdc++
mailing list