This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: new AIX failure
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: bkoz <bkoz at redhat dot com>, libstdc++ at gcc dot gnu dot org
- Date: Wed, 08 May 2002 13:31:31 +0200
- Subject: 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.