new AIX failure
Paolo Carlini
pcarlini@unitus.it
Wed May 8 08:29:00 GMT 2002
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.
More information about the Libstdc++
mailing list