Author: faridz
Date: Tue Jul 31 11:21:57 2007
New Revision: 561423
URL: http://svn.apache.org/viewvc?view=rev&rev=561423
Log:
2007-07-31 Farid Zaripov <[EMAIL PROTECTED]>
* 22.locale.messages.cpp (test_open_close): Use default locale if
loc_name==0.
(test_get): The same.
Modified:
incubator/stdcxx/trunk/tests/localization/22.locale.messages.cpp
Modified: incubator/stdcxx/trunk/tests/localization/22.locale.messages.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.messages.cpp?view=diff&rev=561423&r1=561422&r2=561423
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.messages.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.messages.cpp Tue Jul 31
11:21:57 2007
@@ -533,7 +533,10 @@
"std::messages<%s>::open() and close() in locale(#%s)",
cname, loc_name);
- const std::locale loc (loc_name);
+ // construct a copy of the named locale or default
+ // when no name is specified
+ const std::locale loc =
+ loc_name ? std::locale (loc_name) : std::locale ();
const std::messages<charT>& msgs =
std::use_facet<std::messages<charT> >(loc);
@@ -564,7 +567,10 @@
const char* const text[5][5],
const char *cname)
{
- const std::locale loc (loc_name);
+ // construct a copy of the named locale or default
+ // when no name is specified
+ const std::locale loc =
+ loc_name ? std::locale (loc_name) : std::locale ();
const std::messages<charT>& msgs =
std::use_facet<std::messages<charT> > (loc);