Commit f09805bb by Andreas Schwab Committed by Andreas Schwab

* config/locale/gnu/monetary_members.cc

(moneypunct<char,true>::_M_initialize_moneypunct): Throw caught
exception again.
(moneypunct<char,false>::_M_initialize_moneypunct): Likewise.
* testsuite/22_locale/locale/cons/12352.cc: Also test en_US
locale.

From-SVN: r185149
parent 080324ac
2012-03-09 Andreas Schwab <schwab@linux-m68k.org>
* config/locale/gnu/monetary_members.cc
(moneypunct<char,true>::_M_initialize_moneypunct): Throw caught
exception again.
(moneypunct<char,false>::_M_initialize_moneypunct): Likewise.
* testsuite/22_locale/locale/cons/12352.cc: Also test en_US
locale.
2012-03-09 Paolo Carlini <paolo.carlini@oracle.com> 2012-03-09 Paolo Carlini <paolo.carlini@oracle.com>
* include/debug/formatter.h (enum _Debug_msg_id): Add * include/debug/formatter.h (enum _Debug_msg_id): Add
......
// std::moneypunct implementation details, GNU version -*- C++ -*- // std::moneypunct implementation details, GNU version -*- C++ -*-
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -339,6 +339,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -339,6 +339,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
delete [] __group; delete [] __group;
delete [] __ps; delete [] __ps;
delete [] __ns; delete [] __ns;
__throw_exception_again;
} }
char __pprecedes = *(__nl_langinfo_l(__INT_P_CS_PRECEDES, __cloc)); char __pprecedes = *(__nl_langinfo_l(__INT_P_CS_PRECEDES, __cloc));
...@@ -489,6 +490,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -489,6 +490,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
delete [] __group; delete [] __group;
delete [] __ps; delete [] __ps;
delete [] __ns; delete [] __ns;
__throw_exception_again;
} }
char __pprecedes = *(__nl_langinfo_l(__P_CS_PRECEDES, __cloc)); char __pprecedes = *(__nl_langinfo_l(__P_CS_PRECEDES, __cloc));
......
// { dg-require-namedlocale "" } // { dg-require-namedlocale "" }
// { dg-require-namedlocale "en_US" }
// Copyright (C) 2003, 2005, 2009 Free Software Foundation // Copyright (C) 2003, 2005, 2009 Free Software Foundation
// //
...@@ -105,6 +106,9 @@ void test01(int iters) ...@@ -105,6 +106,9 @@ void test01(int iters)
std::locale loc1 = std::locale(""); std::locale loc1 = std::locale("");
std::locale loc2(loc1, std::locale::classic(), std::locale loc2(loc1, std::locale::classic(),
std::locale::numeric); std::locale::numeric);
std::locale loc3 = std::locale("en_US");
std::locale loc4(loc3, std::locale::classic(),
std::locale::numeric);
} }
catch (std::exception&) catch (std::exception&)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment