Commit f63a8495 by Paolo Carlini Committed by Paolo Carlini

testsuite_hooks.cc: Remove try_named_locale.

2005-05-18  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/testsuite_hooks.cc: Remove try_named_locale.
	* testsuite/testsuite_hooks.h: Remove try_named_locale.
	* testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): New.
	* testsuite/lib/dg-options.exp (dg-require-namedlocale): New, uses
	the above.
	* testsuite/22_locale/codecvt/always_noconv/char/wrapped_env.cc: Use
	dg-require-namedlocale.
	* testsuite/22_locale/codecvt/always_noconv/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/codecvt/encoding/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/encoding/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/codecvt/in/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/in/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/7.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/codecvt/length/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/length/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/codecvt/length/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/codecvt/length/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/codecvt/length/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/codecvt/length/wchar_t/7.cc: Likewise.
	* testsuite/22_locale/codecvt/length/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/length/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/codecvt/max_length/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/max_length/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/codecvt/out/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/out/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/codecvt/out/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/codecvt/out/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/codecvt/out/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/codecvt/out/wchar_t/7.cc: Likewise.
	* testsuite/22_locale/codecvt/out/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/out/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/codecvt/unshift/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/unshift/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/collate/compare/char/1.cc: Likewise.
	* testsuite/22_locale/collate/compare/char/2.cc: Likewise.
	* testsuite/22_locale/collate/compare/char/3.cc: Likewise.
	* testsuite/22_locale/collate/compare/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/collate/compare/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/collate/compare/wchar_t/1.cc: Likewise.
	* testsuite/22_locale/collate/compare/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/collate/compare/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/collate/hash/char/2.cc: Likewise.
	* testsuite/22_locale/collate/hash/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/collate/hash/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/collate/hash/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/collate/transform/char/2.cc: Likewise.
	* testsuite/22_locale/collate/transform/char/3.cc: Likewise.
	* testsuite/22_locale/collate/transform/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/collate/transform/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/collate/transform/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/collate/transform/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/collate_byname/named_equivalence.cc: Likewise.
	* testsuite/22_locale/ctype/cons/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/cons/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/is/char/2.cc: Likewise.
	* testsuite/22_locale/ctype/is/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/is/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/ctype/is/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/is/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/narrow/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/narrow/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/ctype/narrow/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/scan/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/scan/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/scan/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/scan/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/to/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/to/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/to/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/to/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/widen/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/widen/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/ctype/widen/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/ctype/widen/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/ctype/widen/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/ctype/widen/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/facet/2.cc: Likewise.
	* testsuite/22_locale/locale/cons/12352.cc: Likewise.
	* testsuite/22_locale/locale/cons/12438.cc: Likewise.
	* testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
	* testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
	* testsuite/22_locale/locale/cons/2.cc: Likewise.
	* testsuite/22_locale/locale/cons/4.cc: Likewise.
	* testsuite/22_locale/locale/cons/5.cc: Likewise.
	* testsuite/22_locale/locale/cons/7.cc: Likewise.
	* testsuite/22_locale/locale/cons/7222-env.cc: Likewise.
	* testsuite/22_locale/locale/global_locale_objects/14071.cc: Likewise.
	* testsuite/22_locale/locale/global_locale_objects/2.cc: Likewise.
	* testsuite/22_locale/messages/members/char/1.cc: Likewise.
	* testsuite/22_locale/messages/members/char/2.cc: Likewise.
	* testsuite/22_locale/messages/members/char/3.cc: Likewise.
	* testsuite/22_locale/messages/members/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/messages/members/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/messages_byname/named_equivalence.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/1.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/10.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/11.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/11528.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/12.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/13.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/15.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/16.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/17.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/18.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/2.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/3.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/4.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/10.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/11.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/11528.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/12.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/13.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/15.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/16.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/17.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/18.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/money_get/get/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/money_put/put/char/1.cc: Likewise.
	* testsuite/22_locale/money_put/put/char/2.cc: Likewise.
	* testsuite/22_locale/money_put/put/char/3.cc: Likewise.
	* testsuite/22_locale/money_put/put/char/9780-3.cc: Likewise.
	* testsuite/22_locale/money_put/put/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/money_put/put/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
	* testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/money_put/put/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/money_put/put/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/moneypunct/members/char/2.cc: Likewise.
	* testsuite/22_locale/moneypunct/members/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/moneypunct/members/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/moneypunct/members/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/moneypunct/members/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/moneypunct_byname/named_equivalence.cc: Likewise.
	* testsuite/22_locale/num_get/get/char/1.cc: Likewise.
	* testsuite/22_locale/num_get/get/char/3.cc: Likewise.
	* testsuite/22_locale/num_get/get/char/5.cc: Likewise.
	* testsuite/22_locale/num_get/get/char/6.cc: Likewise.
	* testsuite/22_locale/num_get/get/char/9.cc: Likewise.
	* testsuite/22_locale/num_get/get/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/num_get/get/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise.
	* testsuite/22_locale/num_get/get/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/num_get/get/wchar_t/5.cc: Likewise.
	* testsuite/22_locale/num_get/get/wchar_t/6.cc: Likewise.
	* testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
	* testsuite/22_locale/num_get/get/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/num_get/get/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/num_put/put/char/1.cc: Likewise.
	* testsuite/22_locale/num_put/put/char/20909.cc: Likewise.
	* testsuite/22_locale/num_put/put/char/20914.cc: Likewise.
	* testsuite/22_locale/num_put/put/char/3.cc: Likewise.
	* testsuite/22_locale/num_put/put/char/5.cc: Likewise.
	* testsuite/22_locale/num_put/put/char/9780-2.cc: Likewise.
	* testsuite/22_locale/num_put/put/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/num_put/put/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise.
	* testsuite/22_locale/num_put/put/wchar_t/20909.cc: Likewise.
	* testsuite/22_locale/num_put/put/wchar_t/20914.cc: Likewise.
	* testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
	* testsuite/22_locale/num_put/put/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/num_put/put/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/numpunct/members/char/2.cc: Likewise.
	* testsuite/22_locale/numpunct/members/char/3.cc: Likewise.
	* testsuite/22_locale/numpunct/members/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/numpunct/members/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/numpunct/members/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/numpunct/members/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/numpunct/members/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/numpunct_byname/named_equivalence.cc: Likewise.
	* testsuite/22_locale/time_get/date_order/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/time_get/date_order/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/date_order/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/time_get/date_order/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
	* testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
	* testsuite/22_locale/time_get/get_date/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/time_get/get_date/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
	* testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/time_get/get_date/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_date/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
	* testsuite/22_locale/time_get/get_monthname/char/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_monthname/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
	* testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
	* testsuite/22_locale/time_get/get_time/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/time_get/get_time/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
	* testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/time_get/get_time/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_time/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
	* testsuite/22_locale/time_get/get_weekday/char/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_weekday/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
	* testsuite/22_locale/time_put/put/char/2.cc: Likewise.
	* testsuite/22_locale/time_put/put/char/3.cc: Likewise.
	* testsuite/22_locale/time_put/put/char/4.cc: Likewise.
	* testsuite/22_locale/time_put/put/char/6.cc: Likewise.
	* testsuite/22_locale/time_put/put/char/7.cc: Likewise.
	* testsuite/22_locale/time_put/put/char/8.cc: Likewise.
	* testsuite/22_locale/time_put/put/char/9780-1.cc: Likewise.
	* testsuite/22_locale/time_put/put/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/time_put/put/char/wrapped_locale.cc: Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/wrapped_env.cc: Likewise.
	* testsuite/22_locale/time_put/put/wchar_t/wrapped_locale.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/13007.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: Likewise.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc: Likewise.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc: Likewise.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc: Likewise.
	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: Likewise.
	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: Likewise.
	* testsuite/27_io/basic_ios/copyfmt/char/2.cc: Likewise.
	* testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/2.cc:
	Likewise.
	* testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: Likewise.
	* testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: Likewise.
	* testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Likewise.
	* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: Likewise.
	* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: Likewise.
	* testsuite/27_io/basic_streambuf/imbue/wchar_t/9322.cc: Likewise.
	* testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Likewise.
	* testsuite/27_io/basic_stringbuf/imbue/wchar_t/9322.cc: Likewise.
	* testsuite/27_io/objects/wchar_t/10.cc: Likewise.
	* testsuite/27_io/objects/wchar_t/11.cc: Likewise.
	* testsuite/27_io/objects/wchar_t/12.cc: Likewise.
	* testsuite/27_io/objects/wchar_t/13.cc: Likewise.
	* testsuite/27_io/objects/wchar_t/9520.cc: Likewise.
	* testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Likewise.

From-SVN: r99889
parent 5b7451a6
2005-05-18 Paolo Carlini <pcarlini@suse.de>
* testsuite/testsuite_hooks.cc: Remove try_named_locale.
* testsuite/testsuite_hooks.h: Remove try_named_locale.
* testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): New.
* testsuite/lib/dg-options.exp (dg-require-namedlocale): New, uses
the above.
* testsuite/22_locale/codecvt/always_noconv/char/wrapped_env.cc: Use
dg-require-namedlocale.
* testsuite/22_locale/codecvt/always_noconv/char/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Likewise.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Likewise.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Likewise.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc:
Likewise.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/codecvt/encoding/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/encoding/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Likewise.
* testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Likewise.
* testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Likewise.
* testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/codecvt/in/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/in/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/codecvt/in/wchar_t/2.cc: Likewise.
* testsuite/22_locale/codecvt/in/wchar_t/3.cc: Likewise.
* testsuite/22_locale/codecvt/in/wchar_t/4.cc: Likewise.
* testsuite/22_locale/codecvt/in/wchar_t/7.cc: Likewise.
* testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise.
* testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise.
* testsuite/22_locale/codecvt/in/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/in/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/codecvt/length/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/length/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/codecvt/length/wchar_t/2.cc: Likewise.
* testsuite/22_locale/codecvt/length/wchar_t/3.cc: Likewise.
* testsuite/22_locale/codecvt/length/wchar_t/4.cc: Likewise.
* testsuite/22_locale/codecvt/length/wchar_t/7.cc: Likewise.
* testsuite/22_locale/codecvt/length/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/length/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/codecvt/max_length/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/max_length/char/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Likewise.
* testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Likewise.
* testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Likewise.
* testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_env.cc:
Likewise.
* testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/codecvt/out/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/out/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/codecvt/out/wchar_t/2.cc: Likewise.
* testsuite/22_locale/codecvt/out/wchar_t/3.cc: Likewise.
* testsuite/22_locale/codecvt/out/wchar_t/4.cc: Likewise.
* testsuite/22_locale/codecvt/out/wchar_t/7.cc: Likewise.
* testsuite/22_locale/codecvt/out/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/out/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/codecvt/unshift/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/unshift/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Likewise.
* testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Likewise.
* testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
* testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/collate/compare/char/1.cc: Likewise.
* testsuite/22_locale/collate/compare/char/2.cc: Likewise.
* testsuite/22_locale/collate/compare/char/3.cc: Likewise.
* testsuite/22_locale/collate/compare/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/collate/compare/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/collate/compare/wchar_t/1.cc: Likewise.
* testsuite/22_locale/collate/compare/wchar_t/2.cc: Likewise.
* testsuite/22_locale/collate/compare/wchar_t/3.cc: Likewise.
* testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/collate/hash/char/2.cc: Likewise.
* testsuite/22_locale/collate/hash/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/collate/hash/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/collate/hash/wchar_t/2.cc: Likewise.
* testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/collate/transform/char/2.cc: Likewise.
* testsuite/22_locale/collate/transform/char/3.cc: Likewise.
* testsuite/22_locale/collate/transform/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/collate/transform/char/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/collate/transform/wchar_t/2.cc: Likewise.
* testsuite/22_locale/collate/transform/wchar_t/3.cc: Likewise.
* testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc:
Likewise.
* testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/collate_byname/named_equivalence.cc: Likewise.
* testsuite/22_locale/ctype/cons/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/cons/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/is/char/2.cc: Likewise.
* testsuite/22_locale/ctype/is/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/is/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
* testsuite/22_locale/ctype/is/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/is/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/narrow/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/narrow/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Likewise.
* testsuite/22_locale/ctype/narrow/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/scan/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/scan/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/scan/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/scan/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/to/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/to/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/to/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/to/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/widen/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/widen/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/ctype/widen/wchar_t/2.cc: Likewise.
* testsuite/22_locale/ctype/widen/wchar_t/3.cc: Likewise.
* testsuite/22_locale/ctype/widen/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/ctype/widen/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/facet/2.cc: Likewise.
* testsuite/22_locale/locale/cons/12352.cc: Likewise.
* testsuite/22_locale/locale/cons/12438.cc: Likewise.
* testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
* testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
* testsuite/22_locale/locale/cons/2.cc: Likewise.
* testsuite/22_locale/locale/cons/4.cc: Likewise.
* testsuite/22_locale/locale/cons/5.cc: Likewise.
* testsuite/22_locale/locale/cons/7.cc: Likewise.
* testsuite/22_locale/locale/cons/7222-env.cc: Likewise.
* testsuite/22_locale/locale/global_locale_objects/14071.cc: Likewise.
* testsuite/22_locale/locale/global_locale_objects/2.cc: Likewise.
* testsuite/22_locale/messages/members/char/1.cc: Likewise.
* testsuite/22_locale/messages/members/char/2.cc: Likewise.
* testsuite/22_locale/messages/members/char/3.cc: Likewise.
* testsuite/22_locale/messages/members/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/messages/members/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/messages_byname/named_equivalence.cc: Likewise.
* testsuite/22_locale/money_get/get/char/1.cc: Likewise.
* testsuite/22_locale/money_get/get/char/10.cc: Likewise.
* testsuite/22_locale/money_get/get/char/11.cc: Likewise.
* testsuite/22_locale/money_get/get/char/11528.cc: Likewise.
* testsuite/22_locale/money_get/get/char/12.cc: Likewise.
* testsuite/22_locale/money_get/get/char/13.cc: Likewise.
* testsuite/22_locale/money_get/get/char/15.cc: Likewise.
* testsuite/22_locale/money_get/get/char/16.cc: Likewise.
* testsuite/22_locale/money_get/get/char/17.cc: Likewise.
* testsuite/22_locale/money_get/get/char/18.cc: Likewise.
* testsuite/22_locale/money_get/get/char/2.cc: Likewise.
* testsuite/22_locale/money_get/get/char/3.cc: Likewise.
* testsuite/22_locale/money_get/get/char/4.cc: Likewise.
* testsuite/22_locale/money_get/get/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/money_get/get/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/10.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/11.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/11528.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/12.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/13.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/15.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/16.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/17.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/18.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/money_put/put/char/1.cc: Likewise.
* testsuite/22_locale/money_put/put/char/2.cc: Likewise.
* testsuite/22_locale/money_put/put/char/3.cc: Likewise.
* testsuite/22_locale/money_put/put/char/9780-3.cc: Likewise.
* testsuite/22_locale/money_put/put/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/money_put/put/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/moneypunct/members/char/2.cc: Likewise.
* testsuite/22_locale/moneypunct/members/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/moneypunct/members/char/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Likewise.
* testsuite/22_locale/moneypunct/members/wchar_t/wrapped_env.cc:
Likewise.
* testsuite/22_locale/moneypunct/members/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/moneypunct_byname/named_equivalence.cc: Likewise.
* testsuite/22_locale/num_get/get/char/1.cc: Likewise.
* testsuite/22_locale/num_get/get/char/3.cc: Likewise.
* testsuite/22_locale/num_get/get/char/5.cc: Likewise.
* testsuite/22_locale/num_get/get/char/6.cc: Likewise.
* testsuite/22_locale/num_get/get/char/9.cc: Likewise.
* testsuite/22_locale/num_get/get/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/num_get/get/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/3.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/5.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/6.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/num_put/put/char/1.cc: Likewise.
* testsuite/22_locale/num_put/put/char/20909.cc: Likewise.
* testsuite/22_locale/num_put/put/char/20914.cc: Likewise.
* testsuite/22_locale/num_put/put/char/3.cc: Likewise.
* testsuite/22_locale/num_put/put/char/5.cc: Likewise.
* testsuite/22_locale/num_put/put/char/9780-2.cc: Likewise.
* testsuite/22_locale/num_put/put/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/num_put/put/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/20909.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/20914.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/22_locale/numpunct/members/char/2.cc: Likewise.
* testsuite/22_locale/numpunct/members/char/3.cc: Likewise.
* testsuite/22_locale/numpunct/members/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/numpunct/members/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/numpunct/members/wchar_t/2.cc: Likewise.
* testsuite/22_locale/numpunct/members/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/numpunct/members/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/numpunct_byname/named_equivalence.cc: Likewise.
* testsuite/22_locale/time_get/date_order/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/time_get/date_order/char/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_get/date_order/wchar_t/wrapped_env.cc:
Likewise.
* testsuite/22_locale/time_get/date_order/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
* testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
* testsuite/22_locale/time_get/get_date/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/time_get/get_date/char/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/wrapped_env.cc:
Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
* testsuite/22_locale/time_get/get_monthname/char/wrapped_env.cc:
Likewise.
* testsuite/22_locale/time_get/get_monthname/char/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc:
Likewise.
* testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
* testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
* testsuite/22_locale/time_get/get_time/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/time_get/get_time/char/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/wrapped_env.cc:
Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/char/wrapped_env.cc:
Likewise.
* testsuite/22_locale/time_get/get_weekday/char/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc:
Likewise.
* testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc:
Likewise.
* testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
* testsuite/22_locale/time_put/put/char/2.cc: Likewise.
* testsuite/22_locale/time_put/put/char/3.cc: Likewise.
* testsuite/22_locale/time_put/put/char/4.cc: Likewise.
* testsuite/22_locale/time_put/put/char/6.cc: Likewise.
* testsuite/22_locale/time_put/put/char/7.cc: Likewise.
* testsuite/22_locale/time_put/put/char/8.cc: Likewise.
* testsuite/22_locale/time_put/put/char/9780-1.cc: Likewise.
* testsuite/22_locale/time_put/put/char/wrapped_env.cc: Likewise.
* testsuite/22_locale/time_put/put/char/wrapped_locale.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/wrapped_env.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/wrapped_locale.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13007.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: Likewise.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc: Likewise.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc: Likewise.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: Likewise.
* testsuite/27_io/basic_ios/copyfmt/char/2.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/2.cc:
Likewise.
* testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: Likewise.
* testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: Likewise.
* testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Likewise.
* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: Likewise.
* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: Likewise.
* testsuite/27_io/basic_streambuf/imbue/wchar_t/9322.cc: Likewise.
* testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Likewise.
* testsuite/27_io/basic_stringbuf/imbue/wchar_t/9322.cc: Likewise.
* testsuite/27_io/objects/wchar_t/10.cc: Likewise.
* testsuite/27_io/objects/wchar_t/11.cc: Likewise.
* testsuite/27_io/objects/wchar_t/12.cc: Likewise.
* testsuite/27_io/objects/wchar_t/13.cc: Likewise.
* testsuite/27_io/objects/wchar_t/9520.cc: Likewise.
* testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Likewise.
2005-05-17 Nathan Sidwell <nathan@codesourcery.com> 2005-05-17 Nathan Sidwell <nathan@codesourcery.com>
* libsupc++/eh_personality.cc (gcc_unreachable): Define. * libsupc++/eh_personality.cc (gcc_unreachable): Define.
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test02() ...@@ -33,7 +35,7 @@ void test02()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt; typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1"); locale loc = locale("en_US.ISO-8859-1");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test03() ...@@ -33,7 +35,7 @@ void test03()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt; typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15"); locale loc = locale("en_US.ISO-8859-15");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test04() ...@@ -33,7 +35,7 @@ void test04()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt; typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test02() ...@@ -33,7 +35,7 @@ void test02()
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt; typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1"); locale loc = locale("en_US.ISO-8859-1");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test03() ...@@ -33,7 +35,7 @@ void test03()
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt; typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15"); locale loc = locale("en_US.ISO-8859-15");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test04() ...@@ -33,7 +35,7 @@ void test04()
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt; typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -88,7 +90,7 @@ void test02() ...@@ -88,7 +90,7 @@ void test02()
wmemset(i_ref, 0xdeadbeef, size + 1); wmemset(i_ref, 0xdeadbeef, size + 1);
int_type* ito_next; int_type* ito_next;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1"); locale loc = locale("en_US.ISO-8859-1");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -102,7 +104,7 @@ void test03() ...@@ -102,7 +104,7 @@ void test03()
wmemset(i_ref, 0xdeadbeef, size + 1); wmemset(i_ref, 0xdeadbeef, size + 1);
int_type* ito_next; int_type* ito_next;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15"); locale loc = locale("en_US.ISO-8859-15");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -110,7 +112,7 @@ void test04() ...@@ -110,7 +112,7 @@ void test04()
wmemset(i_ref, 0xdeadbeef, esize + 1); wmemset(i_ref, 0xdeadbeef, esize + 1);
int_type* ito_next; int_type* ito_next;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -60,7 +62,7 @@ void test07() ...@@ -60,7 +62,7 @@ void test07()
wmemset(i_ref, 0xdeadbeef, size + 1); wmemset(i_ref, 0xdeadbeef, size + 1);
int_type* ito_next; int_type* ito_next;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -109,7 +111,7 @@ void test08() ...@@ -109,7 +111,7 @@ void test08()
wmemset(i_ref, 0xdeadbeef, esize + 1); wmemset(i_ref, 0xdeadbeef, esize + 1);
int_type* ito_next; int_type* ito_next;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -111,7 +113,7 @@ void test09() ...@@ -111,7 +113,7 @@ void test09()
int_type* ito = i_arr; int_type* ito = i_arr;
int_type* ito_next; int_type* ito_next;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -61,7 +63,7 @@ void test02() ...@@ -61,7 +63,7 @@ void test02()
"\xff"; "\xff";
int size = strlen(e_lit); int size = strlen(e_lit);
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1"); locale loc = locale("en_US.ISO-8859-1");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -61,7 +63,7 @@ void test03() ...@@ -61,7 +63,7 @@ void test03()
"\xff"; "\xff";
int size = strlen(e_lit); int size = strlen(e_lit);
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15"); locale loc = locale("en_US.ISO-8859-15");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -99,7 +101,7 @@ void test04() ...@@ -99,7 +101,7 @@ void test04()
int esize = strlen(e_lit); int esize = strlen(e_lit);
int isize = wcslen(i_lit); int isize = wcslen(i_lit);
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -51,7 +53,7 @@ void test07() ...@@ -51,7 +53,7 @@ void test07()
const ext_type* e_lit = "a\xc0\xff"; const ext_type* e_lit = "a\xc0\xff";
int size = strlen(e_lit); int size = strlen(e_lit);
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -31,7 +33,7 @@ void test02() ...@@ -31,7 +33,7 @@ void test02()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt; typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1"); locale loc = locale("en_US.ISO-8859-1");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -31,7 +33,7 @@ void test03() ...@@ -31,7 +33,7 @@ void test03()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt; typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15"); locale loc = locale("en_US.ISO-8859-15");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -31,7 +33,7 @@ void test04() ...@@ -31,7 +33,7 @@ void test04()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt; typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -86,7 +88,7 @@ void test02() ...@@ -86,7 +88,7 @@ void test02()
memset(e_ref, 0xf0, size + 1); memset(e_ref, 0xf0, size + 1);
ext_type* eto_next; ext_type* eto_next;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1"); locale loc = locale("en_US.ISO-8859-1");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -100,7 +102,7 @@ void test03() ...@@ -100,7 +102,7 @@ void test03()
memset(e_ref, 0xf0, size + 1); memset(e_ref, 0xf0, size + 1);
ext_type* eto_next; ext_type* eto_next;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15"); locale loc = locale("en_US.ISO-8859-15");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -107,7 +109,7 @@ void test04() ...@@ -107,7 +109,7 @@ void test04()
memset(e_ref, 0xf0, esize + 1); memset(e_ref, 0xf0, esize + 1);
ext_type* eto_next; ext_type* eto_next;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -58,7 +60,7 @@ void test03() ...@@ -58,7 +60,7 @@ void test03()
memset(e_ref, 0xf0, size + 1); memset(e_ref, 0xf0, size + 1);
ext_type* eto_next; ext_type* eto_next;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1"); locale loc = locale("en_US.ISO-8859-1");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -71,7 +73,7 @@ void test02() ...@@ -71,7 +73,7 @@ void test02()
memset(e_ref, 0xf0, size + 1); memset(e_ref, 0xf0, size + 1);
ext_type* eto_next; ext_type* eto_next;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1"); locale loc = locale("en_US.ISO-8859-1");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -85,7 +87,7 @@ void test03() ...@@ -85,7 +87,7 @@ void test03()
memset(e_ref, 0xf0, size + 1); memset(e_ref, 0xf0, size + 1);
ext_type* eto_next; ext_type* eto_next;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15"); locale loc = locale("en_US.ISO-8859-15");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -80,7 +82,7 @@ void test04() ...@@ -80,7 +82,7 @@ void test04()
memset(e_ref, 0xf0, size + 1); memset(e_ref, 0xf0, size + 1);
ext_type* eto_next; ext_type* eto_next;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8"); locale loc = locale("en_US.UTF-8");
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,9 +35,9 @@ void test01() ...@@ -33,9 +35,9 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,9 +35,9 @@ void test02() ...@@ -33,9 +35,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-require-namedlocale "" }
// 2003-02-24 Petur Runolfsson <peturr02@ru.is> // 2003-02-24 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test03() ...@@ -33,7 +35,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the collate facets // cache the collate facets
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,9 +35,9 @@ void test01() ...@@ -33,9 +35,9 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -18,11 +24,6 @@ ...@@ -18,11 +24,6 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA. // USA.
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// 22.2.4.1.1 collate members // 22.2.4.1.1 collate members
#include <locale> #include <locale>
...@@ -38,9 +39,9 @@ void test02() ...@@ -38,9 +39,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-require-namedlocale "" }
// 2003-02-24 Petur Runolfsson <peturr02@ru.is> // 2003-02-24 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test03() ...@@ -33,7 +35,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the collate facets // cache the collate facets
......
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -20,11 +26,6 @@ ...@@ -20,11 +26,6 @@
// 22.2.4.1.1 collate members // 22.2.4.1.1 collate members
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#define main discard_main_1 #define main discard_main_1
......
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -20,11 +26,6 @@ ...@@ -20,11 +26,6 @@
// 22.2.4.1.1 collate members // 22.2.4.1.1 collate members
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#define main discard_main_1 #define main discard_main_1
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,9 +35,9 @@ void test02() ...@@ -33,9 +35,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -20,11 +26,6 @@ ...@@ -20,11 +26,6 @@
// 22.2.4.1.1 collate members // 22.2.4.1.1 collate members
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
#include <locale> #include <locale>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
...@@ -37,9 +38,9 @@ void test02() ...@@ -37,9 +38,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -20,11 +26,6 @@ ...@@ -20,11 +26,6 @@
// 22.2.4.1.1 collate members // 22.2.4.1.1 collate members
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#define main discard_main_1 #define main discard_main_1
......
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -20,11 +26,6 @@ ...@@ -20,11 +26,6 @@
// 22.2.4.1.1 collate members // 22.2.4.1.1 collate members
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#define main discard_main_1 #define main discard_main_1
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -32,9 +34,9 @@ void test02() ...@@ -32,9 +34,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-require-namedlocale "" }
// 2003-02-24 Petur Runolfsson <peturr02@ru.is> // 2003-02-24 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -32,7 +34,7 @@ void test03() ...@@ -32,7 +34,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the collate facets // cache the collate facets
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -20,11 +26,6 @@ ...@@ -20,11 +26,6 @@
// 22.2.4.1.1 collate members // 22.2.4.1.1 collate members
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
#include <locale> #include <locale>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
...@@ -37,9 +38,9 @@ void test02() ...@@ -37,9 +38,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-require-namedlocale "" }
// 2003-02-24 Petur Runolfsson <peturr02@ru.is> // 2003-02-24 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -32,7 +34,7 @@ void test03() ...@@ -32,7 +34,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the collate facets // cache the collate facets
......
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -20,11 +26,6 @@ ...@@ -20,11 +26,6 @@
// 22.2.4.1.1 collate members // 22.2.4.1.1 collate members
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#define main discard_main_2 #define main discard_main_2
......
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -20,11 +26,6 @@ ...@@ -20,11 +26,6 @@
// 22.2.4.1.1 collate members // 22.2.4.1.1 collate members
// { dg-do run }
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" }
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#define main discard_main_2 #define main discard_main_2
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002 Free Software Foundation // Copyright (C) 2001, 2002, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -32,7 +34,7 @@ void test01() ...@@ -32,7 +34,7 @@ void test01()
string str; string str;
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
str = loc_de.name(); str = loc_de.name();
locale loc_byname(locale::classic(), new collate_byname<char>("de_DE")); locale loc_byname(locale::classic(), new collate_byname<char>("de_DE"));
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// { dg-do run { xfail *-*-![linux]* } } // { dg-do run { xfail *-*-![linux]* } }
// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
...@@ -68,7 +69,7 @@ void test02() ...@@ -68,7 +69,7 @@ void test02()
} }
// "de_DE" // "de_DE"
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
const ctype<char>& ctype_de = use_facet<ctype<char> >(loc_de); const ctype<char>& ctype_de = use_facet<ctype<char> >(loc_de);
for (int i = 0; i < max; ++i) for (int i = 0; i < max; ++i)
{ {
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// { dg-do run { xfail *-*-![linux]* } } // { dg-do run { xfail *-*-![linux]* } }
// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
...@@ -68,7 +69,7 @@ void test02() ...@@ -68,7 +69,7 @@ void test02()
} }
// "de_DE" // "de_DE"
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
const ctype<wchar_t>& ctype_de = use_facet<ctype<wchar_t> >(loc_de); const ctype<wchar_t>& ctype_de = use_facet<ctype<wchar_t> >(loc_de);
for (int i = 0; i < max; ++i) for (int i = 0; i < max; ++i)
{ {
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003 Free Software Foundation
......
// { dg-require-namedlocale "" }
// 2003-03-12 Petur Runolfsson <peturr02@ru.is> // 2003-03-12 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -38,7 +40,7 @@ void test03() ...@@ -38,7 +40,7 @@ void test03()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8"); locale loc = locale("se_NO.UTF-8");
const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc); const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc);
const wchar_t* wstrlit = L"\x80"; const wchar_t* wstrlit = L"\x80";
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-03-12 Petur Runolfsson <peturr02@ru.is> // 2003-03-12 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -38,7 +40,7 @@ void test02() ...@@ -38,7 +40,7 @@ void test02()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1"); locale loc = locale("en_US.ISO-8859-1");
const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc); const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc);
char c = 0xff; char c = 0xff;
......
// { dg-require-namedlocale "" }
// 2003-03-12 Petur Runolfsson <peturr02@ru.is> // 2003-03-12 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -38,7 +40,7 @@ void test03() ...@@ -38,7 +40,7 @@ void test03()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8"); locale loc = locale("se_NO.UTF-8");
const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc); const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc);
const char* strlit = "\xc2\x80"; const char* strlit = "\xc2\x80";
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2000-08-31 Benjamin Kosnik <bkoz@redhat.com> // 2000-08-31 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2000, 2002, 2003 Free Software Foundation // Copyright (C) 2000, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -83,7 +85,7 @@ void test02() ...@@ -83,7 +85,7 @@ void test02()
// 4: Named locale should destroy facets when it goes out of scope. // 4: Named locale should destroy facets when it goes out of scope.
// Not quite sure how to test for this w/o valgrind at the moment. // Not quite sure how to test for this w/o valgrind at the moment.
{ {
locale loc03 = __gnu_test::try_named_locale("es_MX"); locale loc03 = locale("es_MX");
} }
} }
......
// Copyright (C) 2003 Free Software Foundation // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -101,7 +103,7 @@ void test01(int iters) ...@@ -101,7 +103,7 @@ void test01(int iters)
times_to_fail = i; times_to_fail = i;
try try
{ {
std::locale loc1 = __gnu_test::try_named_locale(""); std::locale loc1 = std::locale("");
std::locale loc2(loc1, std::locale::classic(), std::locale loc2(loc1, std::locale::classic(),
std::locale::numeric); std::locale::numeric);
} }
......
// Copyright (C) 2003 Free Software Foundation // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -42,7 +44,7 @@ void test01(int iters) ...@@ -42,7 +44,7 @@ void test01(int iters)
try try
{ {
locale loc1 = locale::classic(); locale loc1 = locale::classic();
locale loc2 = __gnu_test::try_named_locale(""); locale loc2 = locale("");
VERIFY( !has_facet<MyFacet>(loc2) ); VERIFY( !has_facet<MyFacet>(loc2) );
loc1.combine<MyFacet>(loc2); loc1.combine<MyFacet>(loc2);
......
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } } // { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } } // { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { dg-options "-pthreads" { target *-*-solaris* } } // { dg-options "-pthreads" { target *-*-solaris* } }
// { dg-require-namedlocale "" }
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -38,7 +39,7 @@ void* thread_main(void*) ...@@ -38,7 +39,7 @@ void* thread_main(void*)
std::locale loc_c = std::locale::classic(); std::locale loc_c = std::locale::classic();
std::locale loc[max_locales]; std::locale loc[max_locales];
for (int j = 0; j < max_locales; ++j) for (int j = 0; j < max_locales; ++j)
loc[j] = __gnu_test::try_named_locale(j % 2 ? "en_US" : "fr_FR"); loc[j] = std::locale(j % 2 ? "en_US" : "fr_FR");
for (int i = 0; i < max_loop_count; ++i) for (int i = 0; i < max_loop_count; ++i)
{ {
......
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } } // { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } } // { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { dg-options "-pthreads" { target *-*-solaris* } } // { dg-options "-pthreads" { target *-*-solaris* } }
// { dg-require-namedlocale "" }
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -52,7 +53,7 @@ main() ...@@ -52,7 +53,7 @@ main()
pthread_t tid[max_thread_count]; pthread_t tid[max_thread_count];
for (int j = 0; j < max_locales; ++j) for (int j = 0; j < max_locales; ++j)
loc[j] = __gnu_test::try_named_locale(j % 2 ? "en_US" : "fr_FR"); loc[j] = std::locale(j % 2 ? "en_US" : "fr_FR");
for (int i = 0; i < max_thread_count; i++) for (int i = 0; i < max_thread_count; i++)
pthread_create(&tid[i], NULL, thread_main, 0); pthread_create(&tid[i], NULL, thread_main, 0);
......
// { dg-require-namedlocale "" }
// 2000-09-13 Benjamin Kosnik <bkoz@redhat.com> // 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -170,7 +172,7 @@ void test01() ...@@ -170,7 +172,7 @@ void test01()
// 3 // 3
// explicit locale(const char* std_name) // explicit locale(const char* std_name)
locale loc06 = __gnu_test::try_named_locale("fr_FR"); locale loc06 = locale("fr_FR");
VERIFY (loc06 != loc01); VERIFY (loc06 != loc01);
VERIFY (loc06 != loc02); VERIFY (loc06 != loc02);
VERIFY (loc06.name() == "fr_FR"); VERIFY (loc06.name() == "fr_FR");
......
// { dg-require-namedlocale "" }
// 2000-09-13 Benjamin Kosnik <bkoz@redhat.com> // 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test03() ...@@ -33,7 +35,7 @@ void test03()
const char* LC_ALL_orig = getenv("LC_ALL"); const char* LC_ALL_orig = getenv("LC_ALL");
if (!setenv("LC_ALL", "it_IT", 1)) if (!setenv("LC_ALL", "it_IT", 1))
{ {
std::locale loc = __gnu_test::try_named_locale(""); std::locale loc = std::locale("");
VERIFY( loc.name() == "it_IT" ); VERIFY( loc.name() == "it_IT" );
setenv("LC_ALL", LC_ALL_orig ? LC_ALL_orig : "", 1); setenv("LC_ALL", LC_ALL_orig ? LC_ALL_orig : "", 1);
} }
......
// { dg-require-namedlocale "" }
// 2000-09-13 Benjamin Kosnik <bkoz@redhat.com> // 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -65,7 +67,7 @@ void test04() ...@@ -65,7 +67,7 @@ void test04()
// Check that a "POSIX" LC_ALL is equivalent to "C". // Check that a "POSIX" LC_ALL is equivalent to "C".
if (!setenv("LC_ALL", "POSIX", 1)) if (!setenv("LC_ALL", "POSIX", 1))
{ {
locale loc = __gnu_test::try_named_locale(""); locale loc = locale("");
VERIFY( loc.name() == "C" ); VERIFY( loc.name() == "C" );
} }
setenv("LC_ALL", "", 1); setenv("LC_ALL", "", 1);
...@@ -73,7 +75,7 @@ void test04() ...@@ -73,7 +75,7 @@ void test04()
// Check that a "en_PH" LC_ALL is equivalent to "en_PH". // Check that a "en_PH" LC_ALL is equivalent to "en_PH".
if (!setenv("LC_ALL", "en_PH", 1)) if (!setenv("LC_ALL", "en_PH", 1))
{ {
locale loc = __gnu_test::try_named_locale(""); locale loc = locale("");
VERIFY( loc.name() == "en_PH" ); VERIFY( loc.name() == "en_PH" );
} }
setenv("LC_ALL", "", 1); setenv("LC_ALL", "", 1);
...@@ -83,7 +85,7 @@ void test04() ...@@ -83,7 +85,7 @@ void test04()
{ {
if (!setenv("LC_ALL", "en_PH", 1)) if (!setenv("LC_ALL", "en_PH", 1))
{ {
locale loc = __gnu_test::try_named_locale(""); locale loc = locale("");
VERIFY( loc.name() == "en_PH" ); VERIFY( loc.name() == "en_PH" );
} }
setenv("LC_ALL", "", 1); setenv("LC_ALL", "", 1);
...@@ -112,7 +114,7 @@ void test04() ...@@ -112,7 +114,7 @@ void test04()
// Check the default set by LANG. // Check the default set by LANG.
if (!setenv("LANG", "fr_FR", 1)) if (!setenv("LANG", "fr_FR", 1))
{ {
locale loc = __gnu_test::try_named_locale(""); locale loc = locale("");
VERIFY( loc.name() == "fr_FR" ); VERIFY( loc.name() == "fr_FR" );
} }
...@@ -126,7 +128,7 @@ void test04() ...@@ -126,7 +128,7 @@ void test04()
// Setting a category in the "C" default. // Setting a category in the "C" default.
if (!setenv("LC_COLLATE", "de_DE", 1)) if (!setenv("LC_COLLATE", "de_DE", 1))
{ {
locale loc = __gnu_test::try_named_locale(""); locale loc = locale("");
#if _GLIBCXX_NUM_CATEGORIES #if _GLIBCXX_NUM_CATEGORIES
VERIFY( loc.name() == "LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=C;" VERIFY( loc.name() == "LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=C;"
...@@ -142,7 +144,7 @@ void test04() ...@@ -142,7 +144,7 @@ void test04()
// Changing the LANG default while LC_COLLATE is set. // Changing the LANG default while LC_COLLATE is set.
if (!setenv("LANG", "fr_FR", 1)) if (!setenv("LANG", "fr_FR", 1))
{ {
locale loc = __gnu_test::try_named_locale(""); locale loc = locale("");
#if _GLIBCXX_NUM_CATEGORIES #if _GLIBCXX_NUM_CATEGORIES
VERIFY( loc.name() == "LC_CTYPE=fr_FR;LC_NUMERIC=fr_FR;" VERIFY( loc.name() == "LC_CTYPE=fr_FR;LC_NUMERIC=fr_FR;"
"LC_TIME=fr_FR;LC_COLLATE=de_DE;LC_MONETARY=fr_FR;" "LC_TIME=fr_FR;LC_COLLATE=de_DE;LC_MONETARY=fr_FR;"
...@@ -160,7 +162,7 @@ void test04() ...@@ -160,7 +162,7 @@ void test04()
#if _GLIBCXX_NUM_CATEGORIES #if _GLIBCXX_NUM_CATEGORIES
if (!setenv("LC_IDENTIFICATION", "it_IT", 1)) if (!setenv("LC_IDENTIFICATION", "it_IT", 1))
{ {
locale loc = __gnu_test::try_named_locale(""); locale loc = locale("");
VERIFY( loc.name() == "LC_CTYPE=fr_FR;LC_NUMERIC=fr_FR;" VERIFY( loc.name() == "LC_CTYPE=fr_FR;LC_NUMERIC=fr_FR;"
"LC_TIME=fr_FR;LC_COLLATE=de_DE;LC_MONETARY=fr_FR;" "LC_TIME=fr_FR;LC_COLLATE=de_DE;LC_MONETARY=fr_FR;"
"LC_MESSAGES=fr_FR;LC_PAPER=fr_FR;LC_NAME=fr_FR;" "LC_MESSAGES=fr_FR;LC_PAPER=fr_FR;LC_NAME=fr_FR;"
......
// { dg-require-namedlocale "" }
// 2001-01-19 Benjamin Kosnik <bkoz@redhat.com> // 2001-01-19 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2003 Free Software Foundation // Copyright (C) 2001, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ test02() ...@@ -35,7 +37,7 @@ test02()
// construct a locale object with the specialized facet. // construct a locale object with the specialized facet.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_1(locale::classic(), locale loc_1(locale::classic(),
new numpunct_byname<char>("fr_FR")); new numpunct_byname<char>("fr_FR"));
......
// { dg-require-namedlocale "" }
// 2000-09-13 Benjamin Kosnik <bkoz@redhat.com> // 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -30,8 +32,8 @@ void test02() ...@@ -30,8 +32,8 @@ void test02()
{ {
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
std::locale loc_1 = __gnu_test::try_named_locale(""); std::locale loc_1 = std::locale("");
std::locale loc_2 = __gnu_test::try_named_locale(""); std::locale loc_2 = std::locale("");
VERIFY( loc_1 == loc_2 ); VERIFY( loc_1 == loc_2 );
} }
......
// { dg-require-namedlocale "" }
// 2004-02-09 Petur Runolfsson <peturr02@ru.is> // 2004-02-09 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -30,8 +32,8 @@ void test01() ...@@ -30,8 +32,8 @@ void test01()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const locale loc_is = __gnu_test::try_named_locale("is_IS"); const locale loc_is = locale("is_IS");
const locale loc_en = __gnu_test::try_named_locale("en_US"); const locale loc_en = locale("en_US");
const locale loc(loc_is, loc_en, locale::monetary); const locale loc(loc_is, loc_en, locale::monetary);
......
// { dg-require-namedlocale "" }
// 2000-09-13 Benjamin Kosnik <bkoz@redhat.com> // 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2000, 2002, 2003 Free Software Foundation // Copyright (C) 2000, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -42,13 +44,13 @@ void test02() ...@@ -42,13 +44,13 @@ void test02()
// named locales work. // named locales work.
if (testph && testmx) if (testph && testmx)
{ {
const locale loc_ph = __gnu_test::try_named_locale(ph.c_str()); const locale loc_ph = locale(ph.c_str());
const locale loc_mx = __gnu_test::try_named_locale(mx.c_str()); const locale loc_mx = locale(mx.c_str());
// Use setlocale between two calls to locale("") // Use setlocale between two calls to locale("")
const locale loc_env_1 = __gnu_test::try_named_locale(""); const locale loc_env_1 = locale("");
setlocale(LC_ALL, ph.c_str()); setlocale(LC_ALL, ph.c_str());
const locale loc_env_2 = __gnu_test::try_named_locale(""); const locale loc_env_2 = locale("");
VERIFY( loc_env_1 == loc_env_2 ); VERIFY( loc_env_1 == loc_env_2 );
// Change global locale. // Change global locale.
......
// { dg-require-namedlocale "" }
// 2001-07-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-07-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the messages facets // cache the messages facets
......
// { dg-require-namedlocale "" }
// 2001-07-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-07-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test02() ...@@ -35,7 +37,7 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
VERIFY( loc_c != loc_fr ); VERIFY( loc_c != loc_fr );
// cache the messages facets // cache the messages facets
......
// { dg-require-namedlocale "" }
// 2001-07-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-07-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,8 +37,8 @@ void test03() ...@@ -35,8 +37,8 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
VERIFY( loc_c != loc_us ); VERIFY( loc_c != loc_us );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-07-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-07-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2003 Free Software Foundation // Copyright (C) 2001, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
const char* dir = LOCALEDIR; const char* dir = LOCALEDIR;
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
str = loc_de.name(); str = loc_de.name();
locale loc_byname(locale::classic(), new messages_byname<char>("de_DE")); locale loc_byname(locale::classic(), new messages_byname<char>("de_DE"));
......
// { dg-require-namedlocale "" }
// 2001-09-12 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-12 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2003-10-23 Paolo Carlini <pcarlini@suse.de> // 2003-10-23 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -31,7 +33,7 @@ void test01() ...@@ -31,7 +33,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
iterator_type end; iterator_type end;
istringstream iss; istringstream iss;
......
// { dg-require-namedlocale "" }
// 2003-10-24 Paolo Carlini <pcarlini@suse.de> // 2003-10-24 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// basic construction // basic construction
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
iterator_type end; iterator_type end;
istringstream iss; istringstream iss;
......
// Copyright (C) 2003 Free Software Foundation // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -29,7 +31,7 @@ void test01() ...@@ -29,7 +31,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
iterator_type end; iterator_type end;
istringstream iss; istringstream iss;
......
// { dg-require-namedlocale "" }
// 2004-02-05 Paolo Carlini <pcarlini@suse.de> // 2004-02-05 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// total EPA budget FY 2002 // total EPA budget FY 2002
......
// { dg-require-namedlocale "" }
// 2004-02-05 Paolo Carlini <pcarlini@suse.de> // 2004-02-05 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
iterator_type end01, end02; iterator_type end01, end02;
......
// { dg-require-namedlocale "" }
// 2004-03-01 Paolo Carlini <pcarlini@suse.de> // 2004-03-01 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
iterator_type end01, end02; iterator_type end01, end02;
......
// { dg-require-namedlocale "" }
// 2004-03-02 Paolo Carlini <pcarlini@suse.de> // 2004-03-02 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,8 +36,8 @@ void test01() ...@@ -34,8 +36,8 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
......
// { dg-require-namedlocale "" }
// 2004-03-08 Paolo Carlini <pcarlini@suse.de> // 2004-03-08 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
iterator_type end, end02; iterator_type end, end02;
......
// { dg-require-namedlocale "" }
// 2004-03-15 Paolo Carlini <pcarlini@suse.de> // 2004-03-15 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
iterator_type end, end01, end02; iterator_type end, end01, end02;
......
// { dg-require-namedlocale "" }
// 2001-09-12 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-12 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test02() ...@@ -34,7 +36,7 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// total EPA budget FY 2002 // total EPA budget FY 2002
......
// { dg-require-namedlocale "" }
// 2001-09-12 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-12 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test03() ...@@ -34,7 +36,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// total EPA budget FY 2002 // total EPA budget FY 2002
......
// { dg-require-namedlocale "" }
// 2001-09-12 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-12 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test04() ...@@ -34,7 +36,7 @@ void test04()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// input less than frac_digits // input less than frac_digits
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-09-12 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-12 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2003-10-23 Paolo Carlini <pcarlini@suse.de> // 2003-10-23 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -31,7 +33,7 @@ void test01() ...@@ -31,7 +33,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
iterator_type end; iterator_type end;
wistringstream iss; wistringstream iss;
......
// { dg-require-namedlocale "" }
// 2003-10-24 Paolo Carlini <pcarlini@suse.de> // 2003-10-24 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// basic construction // basic construction
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
iterator_type end; iterator_type end;
wistringstream iss; wistringstream iss;
......
// Copyright (C) 2003 Free Software Foundation // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -29,7 +31,7 @@ void test01() ...@@ -29,7 +31,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
iterator_type end; iterator_type end;
wistringstream iss; wistringstream iss;
......
// { dg-require-namedlocale "" }
// 2004-02-05 Paolo Carlini <pcarlini@suse.de> // 2004-02-05 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// total EPA budget FY 2002 // total EPA budget FY 2002
......
// { dg-require-namedlocale "" }
// 2004-02-05 Paolo Carlini <pcarlini@suse.de> // 2004-02-05 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
iterator_type end01, end02; iterator_type end01, end02;
......
// { dg-require-namedlocale "" }
// 2004-03-01 Paolo Carlini <pcarlini@suse.de> // 2004-03-01 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
iterator_type end01, end02; iterator_type end01, end02;
......
// { dg-require-namedlocale "" }
// 2004-03-02 Paolo Carlini <pcarlini@suse.de> // 2004-03-02 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,8 +36,8 @@ void test01() ...@@ -34,8 +36,8 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
......
// { dg-require-namedlocale "" }
// 2004-03-08 Paolo Carlini <pcarlini@suse.de> // 2004-03-08 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
iterator_type end, end02; iterator_type end, end02;
......
// { dg-require-namedlocale "" }
// 2004-03-15 Paolo Carlini <pcarlini@suse.de> // 2004-03-15 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
iterator_type end, end01, end02; iterator_type end, end01, end02;
......
// { dg-require-namedlocale "" }
// 2001-09-12 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-12 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test02() ...@@ -34,7 +36,7 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// total EPA budget FY 2002 // total EPA budget FY 2002
......
// { dg-require-namedlocale "" }
// 2001-09-12 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-12 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test03() ...@@ -34,7 +36,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// total EPA budget FY 2002 // total EPA budget FY 2002
......
// { dg-require-namedlocale "" }
// 2001-09-12 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-12 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test04() ...@@ -34,7 +36,7 @@ void test04()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// input less than frac_digits // input less than frac_digits
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-27 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-27 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-08-27 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-27 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test02() ...@@ -34,7 +36,7 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-08-27 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-27 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test03() ...@@ -34,7 +36,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// sanity check the data is correct. // sanity check the data is correct.
......
// Copyright (C) 2004 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -25,8 +27,8 @@ int main() ...@@ -25,8 +27,8 @@ int main()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale l1 = __gnu_test::try_named_locale("de_DE"); locale l1 = locale("de_DE");
locale l2 = __gnu_test::try_named_locale("es_ES"); locale l2 = locale("es_ES");
const money_put<char>& mp = use_facet<money_put<char> >(l1); const money_put<char>& mp = use_facet<money_put<char> >(l1);
ostringstream oss; ostringstream oss;
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-27 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-27 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-08-27 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-27 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test02() ...@@ -34,7 +36,7 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-08-27 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-27 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test03() ...@@ -34,7 +36,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); locale loc_de = locale("de_DE@euro");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-23 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-23 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test02() ...@@ -34,7 +36,7 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
// cache the moneypunct facets // cache the moneypunct facets
typedef moneypunct<char, true> __money_true; typedef moneypunct<char, true> __money_true;
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-23 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-23 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test02() ...@@ -34,7 +36,7 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
// cache the moneypunct facets // cache the moneypunct facets
typedef moneypunct<wchar_t, true> __money_true; typedef moneypunct<wchar_t, true> __money_true;
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-24 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-24 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2003 Free Software Foundation // Copyright (C) 2001, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -32,7 +34,7 @@ void test01() ...@@ -32,7 +34,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
string str; string str;
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
str = loc_de.name(); str = loc_de.name();
locale loc_byname(locale::classic(), new moneypunct_byname<char>("de_DE")); locale loc_byname(locale::classic(), new moneypunct_byname<char>("de_DE"));
......
// { dg-require-namedlocale "" }
// 2001-11-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-11-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test03() ...@@ -33,7 +35,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-11-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -36,7 +38,7 @@ void test05() ...@@ -36,7 +38,7 @@ void test05()
istringstream iss; istringstream iss;
// A locale that expects grouping // A locale that expects grouping
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
iss.imbue(loc_de); iss.imbue(loc_de);
const num_get<char>& ng = use_facet<num_get<char> >(iss.getloc()); const num_get<char>& ng = use_facet<num_get<char> >(iss.getloc());
......
// { dg-require-namedlocale "" }
// 2001-11-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test06() ...@@ -33,7 +35,7 @@ void test06()
double d = 0.0; double d = 0.0;
istringstream iss; istringstream iss;
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
iss.imbue(loc_de); iss.imbue(loc_de);
const num_get<char>& ng = use_facet<num_get<char> >(iss.getloc()); const num_get<char>& ng = use_facet<num_get<char> >(iss.getloc());
......
// { dg-require-namedlocale "" }
// 2003-12-19 Paolo Carlini <pcarlini@suse.de> // 2003-12-19 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -32,7 +34,7 @@ void test01() ...@@ -32,7 +34,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// A locale that expects grouping // A locale that expects grouping
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
istringstream iss; istringstream iss;
iss.imbue(loc_de); iss.imbue(loc_de);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-11-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-11-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test03() ...@@ -33,7 +35,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-11-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -36,7 +38,7 @@ void test05() ...@@ -36,7 +38,7 @@ void test05()
wistringstream iss; wistringstream iss;
// A locale that expects grouping // A locale that expects grouping
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
iss.imbue(loc_de); iss.imbue(loc_de);
const num_get<wchar_t>& ng = use_facet<num_get<wchar_t> >(iss.getloc()); const num_get<wchar_t>& ng = use_facet<num_get<wchar_t> >(iss.getloc());
......
// { dg-require-namedlocale "" }
// 2001-11-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test06() ...@@ -33,7 +35,7 @@ void test06()
double d = 0.0; double d = 0.0;
wistringstream iss; wistringstream iss;
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
iss.imbue(loc_de); iss.imbue(loc_de);
const num_get<wchar_t>& ng = use_facet<num_get<wchar_t> >(iss.getloc()); const num_get<wchar_t>& ng = use_facet<num_get<wchar_t> >(iss.getloc());
......
// { dg-require-namedlocale "" }
// 2003-12-19 Paolo Carlini <pcarlini@suse.de> // 2003-12-19 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -32,7 +34,7 @@ void test01() ...@@ -32,7 +34,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// A locale that expects grouping // A locale that expects grouping
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
wistringstream iss; wistringstream iss;
iss.imbue(loc_de); iss.imbue(loc_de);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-11-19 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-19 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the numpunct facets // cache the numpunct facets
......
// { dg-require-namedlocale "" }
// 2005-04-08 Paolo Carlini <pcarlini@suse.de> // 2005-04-08 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation // Copyright (C) 2005 Free Software Foundation
...@@ -31,7 +33,7 @@ void test01() ...@@ -31,7 +33,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// A locale that expects grouping. // A locale that expects grouping.
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
const string empty; const string empty;
string result; string result;
......
// { dg-require-namedlocale "" }
// 2005-04-17 Paolo Carlini <pcarlini@suse.de> // 2005-04-17 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation // Copyright (C) 2005 Free Software Foundation
...@@ -31,7 +33,7 @@ void test01() ...@@ -31,7 +33,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// A locale that expects grouping. // A locale that expects grouping.
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
const string empty; const string empty;
string result; string result;
......
// { dg-require-namedlocale "" }
// 2001-11-19 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-19 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test03() ...@@ -33,7 +35,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-11-19 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-19 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test05() ...@@ -33,7 +35,7 @@ void test05()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// A locale that expects grouping. // A locale that expects grouping.
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
const string empty; const string empty;
string result; string result;
......
// Copyright (C) 2004 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -25,8 +27,8 @@ int main() ...@@ -25,8 +27,8 @@ int main()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale l1 = __gnu_test::try_named_locale("de_DE"); locale l1 = locale("de_DE");
locale l2 = __gnu_test::try_named_locale("es_ES"); locale l2 = locale("es_ES");
const num_put<char>& np = use_facet<num_put<char> >(l1); const num_put<char>& np = use_facet<num_put<char> >(l1);
ostringstream oss; ostringstream oss;
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-11-19 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-19 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the numpunct facets // cache the numpunct facets
......
// { dg-require-namedlocale "" }
// 2005-04-08 Paolo Carlini <pcarlini@suse.de> // 2005-04-08 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation // Copyright (C) 2005 Free Software Foundation
...@@ -31,7 +33,7 @@ void test01() ...@@ -31,7 +33,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// A locale that expects grouping. // A locale that expects grouping.
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
const wstring empty; const wstring empty;
wstring result; wstring result;
......
// { dg-require-namedlocale "" }
// 2005-04-17 Paolo Carlini <pcarlini@suse.de> // 2005-04-17 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation // Copyright (C) 2005 Free Software Foundation
...@@ -31,7 +33,7 @@ void test01() ...@@ -31,7 +33,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// A locale that expects grouping. // A locale that expects grouping.
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
const wstring empty; const wstring empty;
wstring result; wstring result;
......
// { dg-require-namedlocale "" }
// 2001-11-19 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-19 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test03() ...@@ -33,7 +35,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_c != loc_hk ); VERIFY( loc_c != loc_hk );
// sanity check the data is correct. // sanity check the data is correct.
......
// { dg-require-namedlocale "" }
// 2001-11-19 Benjamin Kosnik <bkoz@redhat.com> // 2001-11-19 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test05() ...@@ -33,7 +35,7 @@ void test05()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// A locale that expects grouping. // A locale that expects grouping.
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
const wstring empty; const wstring empty;
wstring result; wstring result;
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-01-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-01-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -31,9 +33,9 @@ void test02() ...@@ -31,9 +33,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-require-namedlocale "" }
// 2001-01-24 Benjamin Kosnik <bkoz@redhat.com> // 2001-01-24 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2003 Free Software Foundation // Copyright (C) 2001, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -29,7 +31,7 @@ void test02() ...@@ -29,7 +31,7 @@ void test02()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc_it = __gnu_test::try_named_locale("it_IT"); locale loc_it = locale("it_IT");
const numpunct<char>& nump_it = use_facet<numpunct<char> >(loc_it); const numpunct<char>& nump_it = use_facet<numpunct<char> >(loc_it);
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-01-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-01-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -31,9 +33,9 @@ void test02() ...@@ -31,9 +33,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
locale loc_fr = __gnu_test::try_named_locale("fr_FR"); locale loc_fr = locale("fr_FR");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-01-24 Benjamin Kosnik <bkoz@redhat.com> // 2001-01-24 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2003 Free Software Foundation // Copyright (C) 2001, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -30,7 +32,7 @@ void test01() ...@@ -30,7 +32,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
string str; string str;
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
str = loc_de.name(); str = loc_de.name();
locale loc_byname(locale::classic(), new numpunct_byname<char>("de_DE")); locale loc_byname(locale::classic(), new numpunct_byname<char>("de_DE"));
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-10-27 Paolo Carlini <pcarlini@suse.de> // 2003-10-27 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// basic construction // basic construction
locale loc_is = __gnu_test::try_named_locale("is_IS"); locale loc_is = locale("is_IS");
// create an ostream-derived object, cache the time_get facet // create an ostream-derived object, cache the time_get facet
iterator_type end; iterator_type end;
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,8 +35,8 @@ void test02() ...@@ -33,8 +35,8 @@ void test02()
// basic construction and sanity checks. // basic construction and sanity checks.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2003-10-27 Paolo Carlini <pcarlini@suse.de> // 2003-10-27 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
// basic construction // basic construction
locale loc_is = __gnu_test::try_named_locale("is_IS"); locale loc_is = locale("is_IS");
// create an ostream-derived object, cache the time_get facet // create an ostream-derived object, cache the time_get facet
iterator_type end; iterator_type end;
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,8 +35,8 @@ void test02() ...@@ -33,8 +35,8 @@ void test02()
// basic construction and sanity checks. // basic construction and sanity checks.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
......
// { dg-require-namedlocale "" }
// 2003-12-17 Paolo Carlini <pcarlini@suse.de> // 2003-12-17 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003 Free Software Foundation
...@@ -31,7 +33,7 @@ void test01() ...@@ -31,7 +33,7 @@ void test01()
typedef istreambuf_iterator<wchar_t> iterator_type; typedef istreambuf_iterator<wchar_t> iterator_type;
locale loc_tw = __gnu_test::try_named_locale("zh_TW"); locale loc_tw = locale("zh_TW");
iterator_type end; iterator_type end;
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,8 +35,8 @@ void test02() ...@@ -33,8 +35,8 @@ void test02()
// basic construction and sanity checks. // basic construction and sanity checks.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,8 +35,8 @@ void test02() ...@@ -33,8 +35,8 @@ void test02()
// basic construction and sanity checks. // basic construction and sanity checks.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
// basic construction and sanity checks. // basic construction and sanity checks.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_de != loc_c ); VERIFY( loc_de != loc_c );
const string empty; const string empty;
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test02() ...@@ -33,7 +35,7 @@ void test02()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
const string empty; const string empty;
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test01() ...@@ -33,7 +35,7 @@ void test01()
// basic construction and sanity checks. // basic construction and sanity checks.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_de != loc_c ); VERIFY( loc_de != loc_c );
const wstring empty; const wstring empty;
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,7 +35,7 @@ void test02() ...@@ -33,7 +35,7 @@ void test02()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
const wstring empty; const wstring empty;
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,8 +35,8 @@ void test02() ...@@ -33,8 +35,8 @@ void test02()
// basic construction and sanity checks. // basic construction and sanity checks.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,8 +35,8 @@ void test02() ...@@ -33,8 +35,8 @@ void test02()
// basic construction and sanity checks. // basic construction and sanity checks.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2004-08-25 Paolo Carlini <pcarlini@suse.de> // 2004-08-25 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -37,7 +39,7 @@ void test01() ...@@ -37,7 +39,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_in = __gnu_test::try_named_locale("ta_IN"); locale loc_in = locale("ta_IN");
VERIFY( loc_in != loc_c ); VERIFY( loc_in != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -36,7 +38,7 @@ void test02() ...@@ -36,7 +38,7 @@ void test02()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_de != loc_c ); VERIFY( loc_de != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -36,7 +38,7 @@ void test03() ...@@ -36,7 +38,7 @@ void test03()
// basic construction and sanity check. // basic construction and sanity check.
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -36,7 +38,7 @@ void test04() ...@@ -36,7 +38,7 @@ void test04()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro"); locale loc_fr = locale("fr_FR@euro");
VERIFY( loc_fr != loc_c ); VERIFY( loc_fr != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -39,7 +41,7 @@ void test06() ...@@ -39,7 +41,7 @@ void test06()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_de != loc_c ); VERIFY( loc_de != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -39,7 +41,7 @@ void test07() ...@@ -39,7 +41,7 @@ void test07()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -39,7 +41,7 @@ void test08() ...@@ -39,7 +41,7 @@ void test08()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro"); locale loc_fr = locale("fr_FR@euro");
VERIFY( loc_fr != loc_c ); VERIFY( loc_fr != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// Copyright (C) 2004 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -25,8 +27,8 @@ int main() ...@@ -25,8 +27,8 @@ int main()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale l1 = __gnu_test::try_named_locale("de_DE"); locale l1 = locale("de_DE");
locale l2 = __gnu_test::try_named_locale("es_ES"); locale l2 = locale("es_ES");
const time_put<char> &tp = use_facet<time_put<char> >(l1); const time_put<char> &tp = use_facet<time_put<char> >(l1);
ostringstream oss; ostringstream oss;
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2004-08-25 Paolo Carlini <pcarlini@suse.de> // 2004-08-25 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -37,7 +39,7 @@ void test01() ...@@ -37,7 +39,7 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_in = __gnu_test::try_named_locale("ta_IN"); locale loc_in = locale("ta_IN");
VERIFY( loc_in != loc_c ); VERIFY( loc_in != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -36,7 +38,7 @@ void test02() ...@@ -36,7 +38,7 @@ void test02()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_de != loc_c ); VERIFY( loc_de != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -36,7 +38,7 @@ void test03() ...@@ -36,7 +38,7 @@ void test03()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -36,7 +38,7 @@ void test04() ...@@ -36,7 +38,7 @@ void test04()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro"); locale loc_fr = locale("fr_FR@euro");
VERIFY( loc_fr != loc_c ); VERIFY( loc_fr != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -39,7 +41,7 @@ void test06() ...@@ -39,7 +41,7 @@ void test06()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
VERIFY( loc_de != loc_c ); VERIFY( loc_de != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -39,7 +41,7 @@ void test07() ...@@ -39,7 +41,7 @@ void test07()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK"); locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -39,7 +41,7 @@ void test08() ...@@ -39,7 +41,7 @@ void test08()
// basic construction and sanity check // basic construction and sanity check
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro"); locale loc_fr = locale("fr_FR@euro");
VERIFY( loc_fr != loc_c ); VERIFY( loc_fr != loc_c );
// create an ostream-derived object, cache the time_put facet // create an ostream-derived object, cache the time_put facet
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// { dg-require-namedlocale "" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -45,7 +47,7 @@ void test01() ...@@ -45,7 +47,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
Buf buf; Buf buf;
std::locale loc(__gnu_test::try_named_locale("fr_FR")); std::locale loc(std::locale("fr_FR"));
buf.pubimbue(loc); buf.pubimbue(loc);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -30,8 +32,8 @@ void test01() ...@@ -30,8 +32,8 @@ void test01()
filebuf fb; filebuf fb;
fb.pubimbue(__gnu_test::try_named_locale("en_US")); fb.pubimbue(locale("en_US"));
fb.pubimbue(__gnu_test::try_named_locale("en_US")); fb.pubimbue(locale("en_US"));
fb.open("tmp_13171-1", ios_base::out); fb.open("tmp_13171-1", ios_base::out);
fb.sputc('F'); fb.sputc('F');
......
// { dg-require-namedlocale "" }
// { dg-require-fork "" } // { dg-require-fork "" }
// { dg-require-mkfifo "" } // { dg-require-mkfifo "" }
...@@ -36,8 +37,8 @@ void test01() ...@@ -36,8 +37,8 @@ void test01()
using namespace std; using namespace std;
using namespace __gnu_test; using namespace __gnu_test;
locale loc_fr(__gnu_test::try_named_locale("fr_FR")); locale loc_fr(locale("fr_FR"));
locale loc_en(__gnu_test::try_named_locale("en_US")); locale loc_en(locale("en_US"));
const char* name = "tmp_fifo_13171-2"; const char* name = "tmp_fifo_13171-2";
unlink(name); unlink(name);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -39,10 +41,9 @@ void test01() ...@@ -39,10 +41,9 @@ void test01()
using namespace std; using namespace std;
filebuf fb; filebuf fb;
fb.pubimbue(locale(__gnu_test::try_named_locale("en_US"), fb.pubimbue(locale(locale("en_US"), new Cvt));
new Cvt));
fb.open("tmp_13171-4", ios_base::out); fb.open("tmp_13171-4", ios_base::out);
fb.pubimbue(__gnu_test::try_named_locale("fr_FR")); fb.pubimbue(locale("fr_FR"));
fb.sputc('N'); fb.sputc('N');
fb.pubsync(); fb.pubsync();
fb.close(); fb.close();
......
// { dg-require-namedlocale "" }
// { dg-require-fork "" } // { dg-require-fork "" }
// { dg-require-mkfifo "" } // { dg-require-mkfifo "" }
...@@ -39,8 +40,8 @@ void test01() ...@@ -39,8 +40,8 @@ void test01()
using namespace std; using namespace std;
using namespace __gnu_test; using namespace __gnu_test;
locale loc_en(__gnu_test::try_named_locale("en_US")); locale loc_en(locale("en_US"));
locale loc_fr(__gnu_test::try_named_locale("fr_FR")); locale loc_fr(locale("fr_FR"));
const char* name = "tmp_fifo_13582-2"; const char* name = "tmp_fifo_13582-2";
unlink(name); unlink(name);
......
// { dg-require-namedlocale "" }
// 2004-04-16 Petur Runolfsson <peturr02@ru.is> // 2004-04-16 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -42,7 +44,7 @@ void test01() ...@@ -42,7 +44,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
Buf fb; Buf fb;
locale loc_us = __gnu_test::try_named_locale("en_US"); locale loc_us = locale("en_US");
fb.pubimbue(loc_us); fb.pubimbue(loc_us);
fb.open("tmp_14975-1", ios_base::out); fb.open("tmp_14975-1", ios_base::out);
......
// { dg-require-namedlocale "" }
// 2003-05-13 Benjamin Kosnik <bkoz@redhat.com> // 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -42,7 +44,7 @@ void test02() ...@@ -42,7 +44,7 @@ void test02()
VERIFY( p != bad); VERIFY( p != bad);
// According to 27.5.2.2.1, loc == getloc() after pubimbue(loc). // According to 27.5.2.2.1, loc == getloc() after pubimbue(loc).
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
locale ret = ob.pubimbue(loc_de); locale ret = ob.pubimbue(loc_de);
VERIFY( ob.getloc() == loc_de ); VERIFY( ob.getloc() == loc_de );
} }
......
// { dg-require-namedlocale "" }
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,10 +36,10 @@ void test07() ...@@ -34,10 +36,10 @@ void test07()
std::filebuf ob; std::filebuf ob;
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale::global(__gnu_test::try_named_locale("en_US")); locale::global(locale("en_US"));
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
locale ret = ob.pubimbue(loc_de); locale ret = ob.pubimbue(loc_de);
VERIFY( ob.getloc() == loc_de ); VERIFY( ob.getloc() == loc_de );
VERIFY( ret == loc ); VERIFY( ret == loc );
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -30,7 +32,7 @@ void test01() ...@@ -30,7 +32,7 @@ void test01()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc_is(__gnu_test::try_named_locale("is_IS.UTF-8")); locale loc_is(locale("is_IS.UTF-8"));
{ {
wofstream out("tmp_12868"); wofstream out("tmp_12868");
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -45,7 +47,7 @@ void test01() ...@@ -45,7 +47,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
Buf buf; Buf buf;
std::locale loc(__gnu_test::try_named_locale("fr_FR")); std::locale loc(std::locale("fr_FR"));
buf.pubimbue(loc); buf.pubimbue(loc);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -28,19 +30,19 @@ void test01() ...@@ -28,19 +30,19 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
locale::global(__gnu_test::try_named_locale("fr_FR")); locale::global(locale("fr_FR"));
ios_base::sync_with_stdio(false); ios_base::sync_with_stdio(false);
locale::global(__gnu_test::try_named_locale("en_US")); locale::global(locale("en_US"));
cin.imbue(__gnu_test::try_named_locale("en_US")); cin.imbue(locale("en_US"));
cout.imbue(__gnu_test::try_named_locale("en_US")); cout.imbue(locale("en_US"));
cerr.imbue(__gnu_test::try_named_locale("en_US")); cerr.imbue(locale("en_US"));
clog.imbue(__gnu_test::try_named_locale("de_DE")); clog.imbue(locale("de_DE"));
wcin.imbue(__gnu_test::try_named_locale("en_US")); wcin.imbue(locale("en_US"));
wcout.imbue(__gnu_test::try_named_locale("en_US")); wcout.imbue(locale("en_US"));
wcerr.imbue(__gnu_test::try_named_locale("en_US")); wcerr.imbue(locale("en_US"));
wclog.imbue(__gnu_test::try_named_locale("de_DE")); wclog.imbue(locale("de_DE"));
cout << 'f' << endl; cout << 'f' << endl;
cerr << 'r' << endl; cerr << 'r' << endl;
......
// { dg-require-namedlocale "" }
// { dg-require-fork "" } // { dg-require-fork "" }
// { dg-require-mkfifo "" } // { dg-require-mkfifo "" }
// 2004-01-11 Petur Runolfsson <peturr02@ru.is> // 2004-01-11 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -39,8 +40,8 @@ void test01() ...@@ -39,8 +40,8 @@ void test01()
using namespace std; using namespace std;
using namespace __gnu_test; using namespace __gnu_test;
locale loc_en(__gnu_test::try_named_locale("en_US")); locale loc_en(locale("en_US"));
locale loc_fr(__gnu_test::try_named_locale("fr_FR")); locale loc_fr(locale("fr_FR"));
const char* name = "tmp_fifo_13582-2"; const char* name = "tmp_fifo_13582-2";
unlink(name); unlink(name);
......
// { dg-require-namedlocale "" }
// 2004-01-11 Petur Runolfsson <peturr02@ru.is> // 2004-01-11 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -30,8 +32,8 @@ void test01() ...@@ -30,8 +32,8 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
locale loc_en(__gnu_test::try_named_locale("en_US")); locale loc_en(locale("en_US"));
locale loc_fr(__gnu_test::try_named_locale("fr_FR")); locale loc_fr(locale("fr_FR"));
const char* name = "tmp_13582-3.tst"; const char* name = "tmp_13582-3.tst";
......
// { dg-require-namedlocale "" }
// { dg-require-fork "" } // { dg-require-fork "" }
// { dg-require-mkfifo "" } // { dg-require-mkfifo "" }
...@@ -37,7 +38,7 @@ void test01() ...@@ -37,7 +38,7 @@ void test01()
using namespace __gnu_test; using namespace __gnu_test;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc_us = try_named_locale("en_US"); locale loc_us = locale("en_US");
const char* name = "tmp_14975-2"; const char* name = "tmp_14975-2";
......
// { dg-require-namedlocale "" }
// 2003-05-13 Benjamin Kosnik <bkoz@redhat.com> // 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -42,7 +44,7 @@ void test02() ...@@ -42,7 +44,7 @@ void test02()
VERIFY( p != bad); VERIFY( p != bad);
// According to 27.5.2.2.1, p1, loc == getloc() after pubimbue(loc). // According to 27.5.2.2.1, p1, loc == getloc() after pubimbue(loc).
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
locale ret = ob.pubimbue(loc_de); locale ret = ob.pubimbue(loc_de);
VERIFY( ob.getloc() == loc_de ); VERIFY( ob.getloc() == loc_de );
} }
......
// { dg-require-namedlocale "" }
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,10 +36,10 @@ void test07() ...@@ -34,10 +36,10 @@ void test07()
std::wfilebuf ob; std::wfilebuf ob;
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale::global(__gnu_test::try_named_locale("en_US")); locale::global(locale("en_US"));
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
locale ret = ob.pubimbue(loc_de); locale ret = ob.pubimbue(loc_de);
VERIFY( ob.getloc() == loc_de ); VERIFY( ob.getloc() == loc_de );
VERIFY( ret == loc ); VERIFY( ret == loc );
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -28,7 +30,7 @@ void test01() ...@@ -28,7 +30,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
wfilebuf fb; wfilebuf fb;
locale loc(__gnu_test::try_named_locale("en_US.UTF-8")); locale loc(locale("en_US.UTF-8"));
fb.pubimbue(loc); fb.pubimbue(loc);
fb.pubsetbuf(0, 0); fb.pubsetbuf(0, 0);
fb.open("tmp_11305-1", ios_base::out); fb.open("tmp_11305-1", ios_base::out);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -28,7 +30,7 @@ void test02() ...@@ -28,7 +30,7 @@ void test02()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
wfilebuf fb; wfilebuf fb;
locale loc(__gnu_test::try_named_locale("en_US.UTF-8")); locale loc(locale("en_US.UTF-8"));
fb.pubimbue(loc); fb.pubimbue(loc);
fb.pubsetbuf(0, 0); fb.pubsetbuf(0, 0);
fb.open("tmp_11305-2", ios_base::out); fb.open("tmp_11305-2", ios_base::out);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -28,7 +30,7 @@ void test03() ...@@ -28,7 +30,7 @@ void test03()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
wfilebuf fb; wfilebuf fb;
locale loc(__gnu_test::try_named_locale("en_US.UTF-8")); locale loc(locale("en_US.UTF-8"));
fb.pubimbue(loc); fb.pubimbue(loc);
fb.open("tmp_11305-3", ios_base::out); fb.open("tmp_11305-3", ios_base::out);
wfilebuf::int_type n1 = fb.sputc(0x20000000); wfilebuf::int_type n1 = fb.sputc(0x20000000);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -28,7 +30,7 @@ void test04() ...@@ -28,7 +30,7 @@ void test04()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
wfilebuf fb; wfilebuf fb;
locale loc(__gnu_test::try_named_locale("en_US.UTF-8")); locale loc(locale("en_US.UTF-8"));
fb.pubimbue(loc); fb.pubimbue(loc);
fb.open("tmp_11405-4", ios_base::out); fb.open("tmp_11405-4", ios_base::out);
wfilebuf::int_type n1 = fb.sputc(0x20000000); wfilebuf::int_type n1 = fb.sputc(0x20000000);
......
// { dg-require-namedlocale "" }
// 2003-09-08 Petur Runolfsson <peturr02@ru.is> // 2003-09-08 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -90,7 +92,7 @@ void test01() ...@@ -90,7 +92,7 @@ void test01()
const size_t wlen = sizeof(wstr) / sizeof(wstr[0]); const size_t wlen = sizeof(wstr) / sizeof(wstr[0]);
const int loops = 2 * BUFSIZ / wlen; const int loops = 2 * BUFSIZ / wlen;
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8"); locale loc = locale("se_NO.UTF-8");
FILE* file = fopen(name, "w"); FILE* file = fopen(name, "w");
for (int i = 0; i < loops; ++i) for (int i = 0; i < loops; ++i)
......
// { dg-require-namedlocale "" }
// 2003-09-08 Petur Runolfsson <peturr02@ru.is> // 2003-09-08 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test02() ...@@ -34,7 +36,7 @@ void test02()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const char name[] = "tmp_seekoff-2.tst"; const char name[] = "tmp_seekoff-2.tst";
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8"); locale loc = locale("se_NO.UTF-8");
const size_t size = 10; const size_t size = 10;
wchar_t buf[size]; wchar_t buf[size];
......
// { dg-require-namedlocale "" }
// 2003-10-07 Petur Runolfsson <peturr02@ru.is> // 2003-10-07 Petur Runolfsson <peturr02@ru.is>
// //
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
...@@ -92,7 +94,7 @@ void test01() ...@@ -92,7 +94,7 @@ void test01()
const size_t wlen = sizeof(wstr) / sizeof(wstr[0]); const size_t wlen = sizeof(wstr) / sizeof(wstr[0]);
const int loops = 2 * BUFSIZ / wlen; const int loops = 2 * BUFSIZ / wlen;
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8"); locale loc = locale("se_NO.UTF-8");
FILE* file = fopen(name, "w"); FILE* file = fopen(name, "w");
for (int i = 0; i < loops; ++i) for (int i = 0; i < loops; ++i)
......
// { dg-require-namedlocale "" }
// 2003-09-04 Petur Runolfsson <peturr02@ru.is> // 2003-09-04 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -85,7 +87,7 @@ void test01() ...@@ -85,7 +87,7 @@ void test01()
const size_t clen = sizeof(cstr) / sizeof(cstr[0]); const size_t clen = sizeof(cstr) / sizeof(cstr[0]);
const size_t wlen = sizeof(wstr) / sizeof(wstr[0]); const size_t wlen = sizeof(wstr) / sizeof(wstr[0]);
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8"); locale loc = locale("se_NO.UTF-8");
FILE* file = fopen(name, "w"); FILE* file = fopen(name, "w");
fwrite(cstr, 1, clen, file); fwrite(cstr, 1, clen, file);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
fbout.close(); fbout.close();
wfilebuf fbin; wfilebuf fbin;
locale loc(__gnu_test::try_named_locale("en_US.UTF-8")); locale loc(locale("en_US.UTF-8"));
fbin.pubimbue(loc); fbin.pubimbue(loc);
fbin.open(name_01, ios_base::in); fbin.open(name_01, ios_base::in);
VERIFY( fbin.sbumpc() == L'a' ); VERIFY( fbin.sbumpc() == L'a' );
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test02() ...@@ -35,7 +37,7 @@ void test02()
fbout.close(); fbout.close();
wfilebuf fbin; wfilebuf fbin;
locale loc(__gnu_test::try_named_locale("en_US.UTF-8")); locale loc(locale("en_US.UTF-8"));
fbin.pubimbue(loc); fbin.pubimbue(loc);
fbin.open(name_02, ios_base::in); fbin.open(name_02, ios_base::in);
VERIFY( fbin.sbumpc() == L'a' ); VERIFY( fbin.sbumpc() == L'a' );
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test03() ...@@ -34,7 +36,7 @@ void test03()
fbout.close(); fbout.close();
wfilebuf fbin; wfilebuf fbin;
locale loc(__gnu_test::try_named_locale("en_US.UTF-8")); locale loc(locale("en_US.UTF-8"));
fbin.pubimbue(loc); fbin.pubimbue(loc);
fbin.pubsetbuf(0, 0); fbin.pubsetbuf(0, 0);
fbin.open(name_03, ios_base::in); fbin.open(name_03, ios_base::in);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test04() ...@@ -35,7 +37,7 @@ void test04()
fbout.close(); fbout.close();
wfilebuf fbin; wfilebuf fbin;
locale loc(__gnu_test::try_named_locale("en_US.UTF-8")); locale loc(locale("en_US.UTF-8"));
fbin.pubimbue(loc); fbin.pubimbue(loc);
fbin.pubsetbuf(0, 0); fbin.pubsetbuf(0, 0);
fbin.open(name_04, ios_base::in); fbin.open(name_04, ios_base::in);
......
// { dg-require-namedlocale "" }
// 2003-09-04 Petur Runolfsson <peturr02@ru.is> // 2003-09-04 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -85,7 +87,7 @@ void test02() ...@@ -85,7 +87,7 @@ void test02()
const size_t clen = sizeof(cstr) / sizeof(cstr[0]); const size_t clen = sizeof(cstr) / sizeof(cstr[0]);
const size_t wlen = sizeof(wstr) / sizeof(wstr[0]); const size_t wlen = sizeof(wstr) / sizeof(wstr[0]);
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8"); locale loc = locale("se_NO.UTF-8");
FILE* file = fopen(name, "w"); FILE* file = fopen(name, "w");
fwrite(cstr, 1, clen, file); fwrite(cstr, 1, clen, file);
......
// { dg-require-namedlocale "" }
// 2003-09-04 Petur Runolfsson <peturr02@ru.is> // 2003-09-04 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -86,7 +88,7 @@ void test03() ...@@ -86,7 +88,7 @@ void test03()
const size_t wlen = sizeof(wstr) / sizeof(wstr[0]); const size_t wlen = sizeof(wstr) / sizeof(wstr[0]);
const int loops = 2 * BUFSIZ / wlen; const int loops = 2 * BUFSIZ / wlen;
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8"); locale loc = locale("se_NO.UTF-8");
FILE* file = fopen(name, "w"); FILE* file = fopen(name, "w");
for (int i = 0; i < loops; ++i) for (int i = 0; i < loops; ++i)
......
// { dg-require-namedlocale "" }
// 2003-09-04 Petur Runolfsson <peturr02@ru.is> // 2003-09-04 Petur Runolfsson <peturr02@ru.is>
// Adapted from 27_io/basic_filebuf/underflow/char/2.cc // Adapted from 27_io/basic_filebuf/underflow/char/2.cc
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -30,7 +32,7 @@ void test01() ...@@ -30,7 +32,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
locale loc (__gnu_test::try_named_locale("se_NO.UTF-8")); locale loc (locale("se_NO.UTF-8"));
wfilebuf fb_out, fb_in_out; wfilebuf fb_out, fb_in_out;
fb_out.pubimbue(loc); fb_out.pubimbue(loc);
fb_in_out.pubimbue(loc); fb_in_out.pubimbue(loc);
......
// { dg-require-namedlocale "" }
// 2003-09-04 Petur Runolfsson <peturr02@ru.is> // 2003-09-04 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation // Copyright (C) 2003, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test05() ...@@ -34,7 +36,7 @@ void test05()
wfilebuf fb; wfilebuf fb;
fb.pubsetbuf(0, 0); fb.pubsetbuf(0, 0);
fb.pubimbue(__gnu_test::try_named_locale("se_NO.UTF-8")); fb.pubimbue(locale("se_NO.UTF-8"));
FILE* file = fopen(name, "w"); FILE* file = fopen(name, "w");
setvbuf(file, 0, _IONBF, 0); setvbuf(file, 0, _IONBF, 0);
......
// { dg-require-namedlocale "" }
// 2003-05-03 Petur Runolfsson <peturr02@ru.is> // 2003-05-03 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
putc(static_cast<unsigned char>(i), file); putc(static_cast<unsigned char>(i), file);
fclose(file); fclose(file);
locale loc (__gnu_test::try_named_locale("de_DE.ISO-8859-15@euro")); locale loc (locale("de_DE.ISO-8859-15@euro"));
wchar_t buf[1]; wchar_t buf[1];
wfilebuf fb; wfilebuf fb;
fb.pubimbue(loc); fb.pubimbue(loc);
......
// { dg-require-namedlocale "" }
// 1999-09-20 bkoz // 1999-09-20 bkoz
// Copyright (C) 1999, 2003 Free Software Foundation, Inc. // Copyright (C) 1999, 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -43,7 +45,7 @@ void test03() ...@@ -43,7 +45,7 @@ void test03()
typedef std::ios_base::fmtflags fmtflags; typedef std::ios_base::fmtflags fmtflags;
typedef std::ios_base::iostate iostate; typedef std::ios_base::iostate iostate;
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
std::ios ios_01(NULL); std::ios ios_01(NULL);
std::ios ios_02(NULL); std::ios ios_02(NULL);
ios_01.imbue(loc_c); ios_01.imbue(loc_c);
......
// { dg-require-namedlocale "" }
// 1999-11-15 Kevin Ediger <kediger@licor.com> // 1999-11-15 Kevin Ediger <kediger@licor.com>
// test the floating point inserters (facet num_put) // test the floating point inserters (facet num_put)
...@@ -41,7 +43,7 @@ test02() ...@@ -41,7 +43,7 @@ test02()
os2.setf(ios::fixed); os2.setf(ios::fixed);
// Check it can be done in a locale with grouping on. // Check it can be done in a locale with grouping on.
locale loc2 = __gnu_test::try_named_locale("de_DE"); locale loc2 = locale("de_DE");
os2.imbue(loc2); os2.imbue(loc2);
os2 << fixed << setprecision(3) << val2 << endl; os2 << fixed << setprecision(3) << val2 << endl;
os2 << endl; os2 << endl;
......
// { dg-require-namedlocale "" }
// Copyright (C) 2005 Free Software Foundation, Inc. // Copyright (C) 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -38,7 +40,7 @@ test02() ...@@ -38,7 +40,7 @@ test02()
os2.setf(wios::fixed); os2.setf(wios::fixed);
// Check it can be done in a locale with grouping on. // Check it can be done in a locale with grouping on.
locale loc2 = __gnu_test::try_named_locale("de_DE"); locale loc2 = locale("de_DE");
os2.imbue(loc2); os2.imbue(loc2);
os2 << fixed << setprecision(3) << val2 << endl; os2 << fixed << setprecision(3) << val2 << endl;
os2 << endl; os2 << endl;
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
Buf1 buf; Buf1 buf;
std::locale loc(__gnu_test::try_named_locale("is_IS.UTF-8")); std::locale loc(std::locale("is_IS.UTF-8"));
buf.pubimbue(loc); buf.pubimbue(loc);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -45,7 +47,7 @@ void test02() ...@@ -45,7 +47,7 @@ void test02()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
Buf2 buf; Buf2 buf;
std::locale loc(__gnu_test::try_named_locale("en_US")); std::locale loc(std::locale("en_US"));
buf.pubimbue(loc); buf.pubimbue(loc);
......
// { dg-require-namedlocale "" }
// 1999-10-11 bkoz // 1999-10-11 bkoz
// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. // Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005
// Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -51,10 +54,10 @@ void test08() ...@@ -51,10 +54,10 @@ void test08()
testbuf ob; testbuf ob;
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale::global(__gnu_test::try_named_locale("en_US")); locale::global(locale("en_US"));
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
locale ret = ob.pubimbue(loc_de); locale ret = ob.pubimbue(loc_de);
VERIFY( ob.getloc() == loc_de ); VERIFY( ob.getloc() == loc_de );
VERIFY( ret == loc ); VERIFY( ret == loc );
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test01() ...@@ -35,7 +37,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
Buf1 buf; Buf1 buf;
std::locale loc(__gnu_test::try_named_locale("is_IS.UTF-8")); std::locale loc(std::locale("is_IS.UTF-8"));
buf.pubimbue(loc); buf.pubimbue(loc);
......
// Copyright (C) 2003 Free Software Foundation, Inc. // { dg-require-namedlocale "" }
// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -45,7 +47,7 @@ void test02() ...@@ -45,7 +47,7 @@ void test02()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
Buf2 buf; Buf2 buf;
std::locale loc(__gnu_test::try_named_locale("en_US")); std::locale loc(std::locale("en_US"));
buf.pubimbue(loc); buf.pubimbue(loc);
......
// { dg-require-namedlocale "" }
// 1999-10-11 bkoz // 1999-10-11 bkoz
// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 // Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -52,10 +54,10 @@ void test08() ...@@ -52,10 +54,10 @@ void test08()
testbuf ob; testbuf ob;
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale::global(__gnu_test::try_named_locale("en_US")); locale::global(locale("en_US"));
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
locale ret = ob.pubimbue(loc_de); locale ret = ob.pubimbue(loc_de);
VERIFY( ob.getloc() == loc_de ); VERIFY( ob.getloc() == loc_de );
VERIFY( ret == loc ); VERIFY( ret == loc );
......
// { dg-require-namedlocale "" }
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. // Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,10 +35,10 @@ void test03() ...@@ -33,10 +35,10 @@ void test03()
std::stringbuf ob; std::stringbuf ob;
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale::global(__gnu_test::try_named_locale("en_US")); locale::global(locale("en_US"));
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
locale ret = ob.pubimbue(loc_de); locale ret = ob.pubimbue(loc_de);
VERIFY( ob.getloc() == loc_de ); VERIFY( ob.getloc() == loc_de );
VERIFY( ret == loc ); VERIFY( ret == loc );
......
// { dg-require-namedlocale "" }
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. // Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -33,10 +35,10 @@ void test03() ...@@ -33,10 +35,10 @@ void test03()
std::wstringbuf ob; std::wstringbuf ob;
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale::global(__gnu_test::try_named_locale("en_US")); locale::global(locale("en_US"));
VERIFY( ob.getloc() == loc ); VERIFY( ob.getloc() == loc );
locale loc_de = __gnu_test::try_named_locale("de_DE"); locale loc_de = locale("de_DE");
locale ret = ob.pubimbue(loc_de); locale ret = ob.pubimbue(loc_de);
VERIFY( ob.getloc() == loc_de ); VERIFY( ob.getloc() == loc_de );
VERIFY( ret == loc ); VERIFY( ret == loc );
......
// { dg-require-namedlocale "" }
// 2003-05-01 Petur Runolfsson <peturr02@ru.is> // 2003-05-01 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -30,7 +32,7 @@ void test10() ...@@ -30,7 +32,7 @@ void test10()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const char* name = "tmp_10"; const char* name = "tmp_10";
locale loc(__gnu_test::try_named_locale("se_NO.UTF-8")); locale loc(locale("se_NO.UTF-8"));
locale::global(loc); locale::global(loc);
wcin.imbue(loc); wcin.imbue(loc);
wcout.imbue(loc); wcout.imbue(loc);
......
// { dg-require-namedlocale "" }
// 2003-05-01 Petur Runolfsson <peturr02@ru.is> // 2003-05-01 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -30,7 +32,7 @@ void test11() ...@@ -30,7 +32,7 @@ void test11()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const char* name = "tmp_11"; const char* name = "tmp_11";
locale loc(__gnu_test::try_named_locale("se_NO.UTF-8")); locale loc(locale("se_NO.UTF-8"));
locale::global(loc); locale::global(loc);
wcin.imbue(loc); wcin.imbue(loc);
wcout.imbue(loc); wcout.imbue(loc);
......
// { dg-require-namedlocale "" }
// 2003-09-04 Petur Runolfsson <peturr02@ru.is> // 2003-09-04 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test12() ...@@ -35,7 +37,7 @@ void test12()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const char* name = "tmp_12"; const char* name = "tmp_12";
locale loc(__gnu_test::try_named_locale("se_NO.UTF-8")); locale loc(locale("se_NO.UTF-8"));
locale::global(loc); locale::global(loc);
std::ios_base::sync_with_stdio(false); std::ios_base::sync_with_stdio(false);
wcout.imbue(loc); wcout.imbue(loc);
......
// { dg-require-namedlocale "" }
// 2003-09-04 Petur Runolfsson <peturr02@ru.is> // 2003-09-04 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -35,7 +37,7 @@ void test13() ...@@ -35,7 +37,7 @@ void test13()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
const char* name = "tmp_13"; const char* name = "tmp_13";
locale loc(__gnu_test::try_named_locale("se_NO.UTF-8")); locale loc(locale("se_NO.UTF-8"));
locale::global(loc); locale::global(loc);
std::ios_base::sync_with_stdio(false); std::ios_base::sync_with_stdio(false);
wcin.imbue(loc); wcin.imbue(loc);
......
// { dg-require-namedlocale "" }
// 2003-04-30 Petur Runolfsson <peturr02@ru.is> // 2003-04-30 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2005 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,7 +36,7 @@ void test01() ...@@ -34,7 +36,7 @@ void test01()
putc(static_cast<unsigned char>(i), file); putc(static_cast<unsigned char>(i), file);
fclose(file); fclose(file);
locale loc (__gnu_test::try_named_locale("de_DE.ISO-8859-15@euro")); locale loc (locale("de_DE.ISO-8859-15@euro"));
locale::global(loc); // Set locale for stdin locale::global(loc); // Set locale for stdin
freopen(name, "r", stdin); freopen(name, "r", stdin);
......
// Copyright (C) 2004 Free Software Foundation // { dg-require-namedlocale "" }
// Copyright (C) 2004, 2005 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -28,7 +30,7 @@ void test01() ...@@ -28,7 +30,7 @@ void test01()
const char* name = "tmp_12077"; const char* name = "tmp_12077";
locale loc = __gnu_test::try_named_locale("is_IS.UTF-8"); locale loc = locale("is_IS.UTF-8");
locale::global(loc); locale::global(loc);
wcin.imbue(loc); wcin.imbue(loc);
......
# Handlers for additional dg-xxx keywords in tests. # Handlers for additional dg-xxx keywords in tests.
# Copyright (C) 2004 Free Software Foundation, Inc. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -27,3 +27,11 @@ proc dg-require-iconv { args } { ...@@ -27,3 +27,11 @@ proc dg-require-iconv { args } {
return return
} }
proc dg-require-namedlocale { args } {
if { ![ check_v3_target_namedlocale ] } {
upvar dg-do-what dg-do-what
set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
return
}
return
}
# libstdc++ "tool init file" for DejaGNU # libstdc++ "tool init file" for DejaGNU
# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. # Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -342,3 +342,91 @@ proc v3-build_support {} { ...@@ -342,3 +342,91 @@ proc v3-build_support {} {
append v3-test_objs "$object_file " append v3-test_objs "$object_file "
} }
} }
proc check_v3_target_namedlocale { } {
global et_namedlocale_saved
global et_namedlocale_target_name
global tool
if { ![info exists et_namedlocale_target_name] } {
set et_namedlocale_target_name ""
}
# If the target has changed since we set the cached value, clear it.
set current_target [current_target_name]
if { $current_target != $et_namedlocale_target_name } {
verbose "check_v3_target_namedlocale: `$et_namedlocale_target_name'" 2
set et_namedlocale_target_name $current_target
if [info exists et_namedlocale_saved] {
verbose "check_v3_target_namedlocale: removing cached result" 2
unset et_namedlocale_saved
}
}
if [info exists et_namedlocale_saved] {
verbose "check_v3_target_namedlocale: using cached result" 2
} else {
set et_namedlocale_saved 0
# Set up, compile, and execute a C++ test program that tries to use
# all the required named locales.
set src nlocale[pid].cc
set exe nlocale[pid].x
set f [open $src "w"]
puts $f "#include <locale>"
puts $f "using namespace std;"
puts $f "int main ()"
puts $f "{"
puts $f " try"
puts $f " {"
puts $f " locale(\"\");"
puts $f " locale(\"de_DE\");"
puts $f " locale(\"de_DE.ISO-8859-15@euro\");"
puts $f " locale(\"de_DE@euro\");"
puts $f " locale(\"en_HK\");"
puts $f " locale(\"en_PH\");"
puts $f " locale(\"en_US\");"
puts $f " locale(\"en_US.ISO-8859-1\");"
puts $f " locale(\"en_US.ISO-8859-15\");"
puts $f " locale(\"en_US.UTF-8\");"
puts $f " locale(\"es_ES\");"
puts $f " locale(\"es_MX\");"
puts $f " locale(\"fr_FR\");"
puts $f " locale(\"fr_FR@euro\");"
puts $f " locale(\"is_IS\");"
puts $f " locale(\"is_IS.UTF-8\");"
puts $f " locale(\"it_IT\");"
puts $f " locale(\"ja_JP.eucjp\");"
puts $f " locale(\"se_NO.UTF-8\");"
puts $f " locale(\"ta_IN\");"
puts $f " locale(\"zh_TW\");"
puts $f " return 0;"
puts $f " }"
puts $f " catch(...)"
puts $f " {"
puts $f " return 1;"
puts $f " }"
puts $f "}"
close $f
set lines [v3_target_compile $src $exe executable ""]
file delete $src
if [string match "" $lines] {
# No error message, compilation succeeded.
set result [${tool}_load "./$exe" "" ""]
set status [lindex $result 0]
remote_file build delete $exe
verbose "check_v3_target_namedlocale: status is <$status>" 2
if { $status == "pass" } {
set et_namedlocale_saved 1
}
} else {
verbose "check_v3_target_namedlocale: compilation failed" 2
}
}
return $et_namedlocale_saved
}
...@@ -162,7 +162,7 @@ namespace __gnu_test ...@@ -162,7 +162,7 @@ namespace __gnu_test
bool test = true; bool test = true;
// Set the global locale. // Set the global locale.
locale loc_name = try_named_locale(name); locale loc_name = locale(name);
locale orig = locale::global(loc_name); locale orig = locale::global(loc_name);
const char* res = setlocale(LC_ALL, name); const char* res = setlocale(LC_ALL, name);
...@@ -192,7 +192,7 @@ namespace __gnu_test ...@@ -192,7 +192,7 @@ namespace __gnu_test
#ifdef _GLIBCXX_HAVE_SETENV #ifdef _GLIBCXX_HAVE_SETENV
// Set the global locale. // Set the global locale.
locale loc_name = try_named_locale(name); locale loc_name = locale(name);
locale orig = locale::global(loc_name); locale orig = locale::global(loc_name);
// Set environment variable env to value in name. // Set environment variable env to value in name.
...@@ -214,25 +214,6 @@ namespace __gnu_test ...@@ -214,25 +214,6 @@ namespace __gnu_test
#endif #endif
} }
std::locale
try_named_locale(const char* name)
{
try
{
return std::locale(name);
}
#ifdef __EXCEPTIONS
catch (std::runtime_error& ex)
{
// Thrown by generic and gnu implemenation if named locale fails.
if (std::strstr(ex.what(), "name not valid"))
exit(0);
else
throw;
}
#endif
}
counter::size_type counter::count = 0; counter::size_type counter::count = 0;
unsigned int copy_constructor::count_ = 0; unsigned int copy_constructor::count_ = 0;
unsigned int copy_constructor::throw_on_ = 0; unsigned int copy_constructor::throw_on_ = 0;
......
...@@ -160,11 +160,6 @@ namespace __gnu_test ...@@ -160,11 +160,6 @@ namespace __gnu_test
void void
run_tests_wrapped_env(const char*, const char*, const func_callback&); run_tests_wrapped_env(const char*, const char*, const func_callback&);
// Try to create a locale with the given name. If it fails, bail.
std::locale
try_named_locale(const char* name);
// Counting. // Counting.
struct counter struct counter
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment