stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r593596 - /incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.cpp
Date Fri, 09 Nov 2007 17:26:12 GMT
Author: faridz
Date: Fri Nov  9 09:26:11 2007
New Revision: 593596

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

	Merged r593595 from branches/4.2.x with a fix for STDCXX-659
	* 22.locale.moneypunct.cpp (check_moneypunct): Set all categories
	instead setting the only monetary category.

Modified:
    incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.cpp

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.cpp?rev=593596&r1=593595&r2=593596&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.moneypunct.cpp Fri Nov  9 09:26:11
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