stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r633237 - /stdcxx/branches/4.2.x/tests/localization/22.locale.messages.cpp
Date Mon, 03 Mar 2008 19:13:42 GMT
Author: vitek
Date: Mon Mar  3 11:13:36 2008
New Revision: 633237

URL: http://svn.apache.org/viewvc?rev=633237&view=rev
Log:

2008-03-03  Travis Vitek  <vitek@roguewave.com>

	Merged rev 633233 from trunk.

	2008-03-03  Travis Vitek  <vitek@roguewave.com>

	STDCXX-665
	* tests/localization/22.locale.messages.cpp [_RWSTD_OS_AIX] (run_test):
	Set LC__FASTMSG environment variable to false to work around a
	catopen() issue on AIX.


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

Modified: stdcxx/branches/4.2.x/tests/localization/22.locale.messages.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/localization/22.locale.messages.cpp?rev=633237&r1=633236&r2=633237&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/localization/22.locale.messages.cpp (original)
+++ stdcxx/branches/4.2.x/tests/localization/22.locale.messages.cpp Mon Mar  3 11:13:36 2008
@@ -817,6 +817,16 @@
 static int
 run_test (int, char*[])
 {
+
+#ifdef _RWSTD_OS_AIX
+
+    // must do this so that NLSPATH lookup works correctly for both
+	// the C and POSIX locales.
+    const int p = rw_putenv ("LC__FASTMSG=false");
+    rw_note (!p, 0, __LINE__, "failed to set LC__FASTMSG");
+    
+#endif    // _RWSTD_OS_AIX
+
     for (int i = 0; i < MAX_SETS; ++i) {
         for (int j = 0; j < MAX_MESSAGES; ++j)
             catalog.append (messages [i][j], std::strlen (messages [i][j]) + 1);



Mime
View raw message