This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: new AIX failure


Hi again,

as I expected could not reproduce the problem on my x86-Linux box 
configured with --enable-clocale=generic.

Therefore I strongly suspect that the problem is due to the fragility of 
the new tests wrt localedata (not installed or whatever). If I'm right 
this kind of fix (same spirit of the 5280 tests) should be applied 
everywhere:

--- codecvt_members_char_char.cc~       2002-05-08 12:40:27.000000000 +0200
+++ codecvt_members_char_char.cc        2002-05-08 12:41:42.000000000 +0200
@@ -102,10 +102,14 @@
 {
   bool test = true;

-  std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
-  test01();
-  std::string loc2 = setlocale(LC_ALL, NULL);
-  VERIFY( loc1 == loc2 );
+  const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+  if (tentLANG != NULL)
+    {
+      std::string preLANG = tentLANG;
+      test01();
+      std::string postLANG = setlocale(LC_ALL, NULL);
+      VERIFY( preLANG == postLANG );
+    }
 }

David? Benjamin?

Thanks,
Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]