stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r593595 - /incubator/stdcxx/branches/4.2.x/tests/localization/22.locale.moneypunct.cpp
Date Fri, 09 Nov 2007 17:24:13 GMT
Author: faridz
Date: Fri Nov  9 09:24:13 2007
New Revision: 593595

URL: http://svn.apache.org/viewvc?rev=593595&view=rev
Log:
2007-11-09 Farid Zaripov <farid_zaripov@epam.com>

	STDCXX-659
	* 22.locale.moneypunct.cpp (check_moneypunct): Set all categories
	instead setting the only monetary category.

Modified:
    incubator/stdcxx/branches/4.2.x/tests/localization/22.locale.moneypunct.cpp

Modified: incubator/stdcxx/branches/4.2.x/tests/localization/22.locale.moneypunct.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/tests/localization/22.locale.moneypunct.cpp?rev=593595&r1=593594&r2=593595&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/tests/localization/22.locale.moneypunct.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/tests/localization/22.locale.moneypunct.cpp Fri Nov  9
09:24:13 2007
@@ -339,7 +339,7 @@
 {
     // (try to) set the global C locale
     char locnamebuf [256];
-    const char *loc = std::setlocale (LC_MONETARY, locname);
+    const char *loc = std::setlocale (LC_ALL, locname);
     if (!loc)
         return false;
 
@@ -369,7 +369,7 @@
             return false;
 
         // reset to default locale given by LC_LANG
-        std::setlocale (LC_MONETARY, "");
+        std::setlocale (LC_ALL, "");
 
         // create a new C++ locale object
         loc_ = std::locale (locname);



Mime
View raw message