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++/38368] locale(const char* std_name) may create locale with broken facets



------- Comment #5 from paolo at gcc dot gnu dot org  2008-12-04 17:17 -------
Subject: Bug 38368

Author: paolo
Date: Thu Dec  4 17:16:27 2008
New Revision: 142439

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

        PR libstdc++/38368
        * config/locale/gnu/numeric_members.cc (numpunct<char>::
        _M_initialize_numpunct, numpunct<wchar_t>::_M_initialize_numpunct):
        Fix for THOUSANDS_SEP == '\0' consistently with "C" locale.
        * config/locale/gnu/monetary_members.cc (moneypunct<char, true>::
        _M_initialize_moneypunct, moneypunct<char, false>::
        _M_initialize_moneypunct, moneypunct<wchar_t, true>::
        _M_initialize_moneypunct, moneypunct<wchar_t, false>::
        _M_initialize_moneypunct): Fix for __MON_DECIMAL_POINT == '\0' or
        __MON_THOUSANDS_SEP == '\0' consistently with "C" locale.
        * testsuite/22_locale/locale/cons/38368.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/22_locale/locale/cons/38368.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/config/locale/gnu/monetary_members.cc
    trunk/libstdc++-v3/config/locale/gnu/numeric_members.cc


-- 


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


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