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 19:46:32 UTC
svn commit: r633233 - /stdcxx/trunk/tests/localization/22.locale.messages.cpp
Author: vitek
Date: Mon Mar 3 10:46:28 2008
New Revision: 633233
URL: http://svn.apache.org/viewvc?rev=633233&view=rev
Log:
2008-03-03 Travis Vitek <vi...@roguewave.com>
STDCXX-665
* tests/localization/22.locale.messages.cpp (rw_test): Set LC__FASTMSG
environment variable to false to work around catopen() issue on AIX.
Modified:
stdcxx/trunk/tests/localization/22.locale.messages.cpp
Modified: stdcxx/trunk/tests/localization/22.locale.messages.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/localization/22.locale.messages.cpp?rev=633233&r1=633232&r2=633233&view=diff
==============================================================================
--- stdcxx/trunk/tests/localization/22.locale.messages.cpp (original)
+++ stdcxx/trunk/tests/localization/22.locale.messages.cpp Mon Mar 3 10:46:28 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);