You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by vi...@apache.org on 2008/03/03 20:13:42 UTC

svn commit: r633237 - /stdcxx/branches/4.2.x/tests/localization/22.locale.messages.cpp

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  <vi...@roguewave.com>

	Merged rev 633233 from trunk.

	2008-03-03  Travis Vitek  <vi...@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);