This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/38399] money_get<> read decimal point when frac_digits() <= 0



------- Comment #5 from paolo at gcc dot gnu dot org  2008-12-05 18:24 -------
Subject: Bug 38399

Author: paolo
Date: Fri Dec  5 18:23:39 2008
New Revision: 142487

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142487
Log:
2008-12-05  Paolo Carlini  <paolo.carlini@oracle.com>

        PR libstdc++/38399
        * include/bits/locale_facets_nonio.tcc (money_get<>::
        _M_extract(iter_type, iter_type, ios_base&, ios_base::iostate&,
        string&)): Fix, reject decimal point when frac_digits <= 0.
        * testsuite/22_locale/money_get/get/char/38399.cc: New.
        * testsuite/22_locale/money_get/get/wchar_t/38399.cc: Likewise.
        * testsuite/22_locale/money_get/get/char/5.cc: Adjust.
        * testsuite/22_locale/money_get/get/wchar_t/5.cc: Likewise.

Added:
    trunk/libstdc++-v3/testsuite/22_locale/money_get/get/char/38399.cc
    trunk/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/38399.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/locale_facets_nonio.tcc
    trunk/libstdc++-v3/testsuite/22_locale/money_get/get/char/5.cc
    trunk/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/5.cc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38399


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]