This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
hppa2.0n-hp-hpux11.00 libstdc++-v3 locale fails
- From: Rodney Brown <rdbrown at mira dot net>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: dave dot anglin at nrc dot ca, libstdc++ at gcc dot gnu dot org
- Date: Sun, 16 Feb 2003 21:49:41 +1100
- Subject: hppa2.0n-hp-hpux11.00 libstdc++-v3 locale fails
On hppa2.0n-hp-hppa11.00 and maybe Dave Anglin's hppa64-hp-hpux11.11
the wrapped_locale.cc execution tests fail because there is no
ja_JP.eucjp locale
on the machine. The following patch executes ok - for one test.
Should
libstdc++-v3/testsuite/testsuite_hooks.cc:run_tests_wrapped_locale take
a list of locales to try, falling back to C or POSIX so tests don't
fail from a missing
or uninstalled locale?
---
gcc/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/char/wrapped_locale.cc.orig
2003-01-22 02:29:11.000000000 +1100
+++
gcc/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/char/wrapped_locale.cc
2004-01-18 15:05:25.000000000 +1100
@@ -31,6 +31,13 @@ int main()
using namespace __gnu_cxx_test;
func_callback two;
two.push_back(&test01);
- run_tests_wrapped_locale("ja_JP.eucjp", two);
+ try
+ {
+ run_tests_wrapped_locale("ja_JP.eucjp", two);
+ }
+ catch (...)
+ {
+ run_tests_wrapped_locale("cs_CZ.iso88592", two);
+ }
return 0;
}
what(): LC_ALL forja_JP.eucjp
--
FAIL: 22_locale/codecvt/always_noconv/char/wrapped_locale.cc execution test
FAIL: 22_locale/codecvt/encoding/char/wrapped_locale.cc execution test
FAIL: 22_locale/codecvt/in/char/wrapped_locale.cc execution test
FAIL: 22_locale/codecvt/length/char/wrapped_locale.cc execution test
FAIL: 22_locale/codecvt/max_length/char/wrapped_locale.cc execution test
FAIL: 22_locale/codecvt/out/char/wrapped_locale.cc execution test
FAIL: 22_locale/codecvt/unshift/char/wrapped_locale.cc execution test
FAIL: 22_locale/collate/compare/char/wrapped_locale.cc execution test
FAIL: 22_locale/collate/hash/char/wrapped_locale.cc execution test
FAIL: 22_locale/collate/transform/char/wrapped_locale.cc execution test
FAIL: 22_locale/ctype/cons/char/wrapped_locale.cc execution test
FAIL: 22_locale/ctype/is/char/wrapped_locale.cc execution test
FAIL: 22_locale/ctype/narrow/char/wrapped_locale.cc execution test
FAIL: 22_locale/ctype/scan/char/wrapped_locale.cc execution test
FAIL: 22_locale/ctype/to/char/wrapped_locale.cc execution test
FAIL: 22_locale/ctype/widen/char/wrapped_locale.cc execution test
FAIL: 22_locale/messages/members/char/wrapped_locale.cc execution test
FAIL: 22_locale/money_get/get/char/wrapped_locale.cc execution test
FAIL: 22_locale/money_put/put/char/wrapped_locale.cc execution test
FAIL: 22_locale/moneypunct/members/char/wrapped_locale.cc execution test
FAIL: 22_locale/num_get/get/char/wrapped_locale.cc execution test
FAIL: 22_locale/num_put/put/char/wrapped_locale.cc execution test
FAIL: 22_locale/numpunct/members/char/wrapped_locale.cc execution test
FAIL: 22_locale/time_get/date_order/char/wrapped_locale.cc execution test
FAIL: 22_locale/time_get/get_date/char/wrapped_locale.cc execution test
FAIL: 22_locale/time_get/get_monthname/char/wrapped_locale.cc execution test
FAIL: 22_locale/time_get/get_time/char/wrapped_locale.cc execution test
FAIL: 22_locale/time_get/get_weekday/char/wrapped_locale.cc execution test
FAIL: 22_locale/time_get/get_year/char/wrapped_locale.cc execution test
FAIL: 22_locale/time_put/put/char/wrapped_locale.cc execution test