Commit 4216708a by John Marino Committed by Jonathan Wakely

Improve portability of named locale tests

2015-11-13  John Marino  <gnugcc@marino.st>

	* testsuite/22_locale/codecvt/always_noconv/char/wrapped_env.cc:
	Use portable locale name
	* 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/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/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/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/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/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/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/wrapped_env.cc: Likewise.
	* testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/codecvt_byname/50714.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/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/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/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/38365.cc: Likewise.
	* testsuite/22_locale/locale/cons/38368.cc: Likewise.
	* testsuite/22_locale/locale/cons/4.cc: Likewise.
	* testsuite/22_locale/locale/cons/40184.cc: Likewise.
	* testsuite/22_locale/locale/cons/7.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/13631.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/40712.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/char/2.cc: Likewise.
	* testsuite/22_locale/time_get/get/wchar_t/2.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/26701.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/26701.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/38081-1.cc: Likewise.
	* testsuite/22_locale/time_get/get_weekday/char/38081-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_get/get_year/char/wrapped_env.cc: Likewise.
	* testsuite/22_locale/time_get/get_year/char/wrapped_locale.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_year/wchar_t/wrapped_env.cc:
	Likewise.
	* testsuite/22_locale/time_get/get_year/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/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/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/cons/57394.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-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/manipulators/extended/get_money/char/1.cc: Likewise.
	* testsuite/27_io/manipulators/extended/get_money/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/manipulators/extended/get_time/char/2.cc: Likewise.
	* testsuite/27_io/manipulators/extended/get_time/wchar_t/2.cc:
	Likewise.
	* testsuite/27_io/manipulators/extended/put_money/char/1.cc: Likewise.
	* testsuite/27_io/manipulators/extended/put_money/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/manipulators/extended/put_time/char/2.cc: Likewise.
	* testsuite/27_io/manipulators/extended/put_time/wchar_t/2.cc:
	Likewise.
	* testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Likewise.
	* testsuite/27_io/objects/wchar_t/9520.cc: Likewise.
	* testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Check
	for named locale as appropriate for target.
	* testsuite/util/testsuite_hooks.h (ISO_8859): Define macro to form
	target's preferred form of locale name.

From-SVN: r230329
parent 1596d018
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US.ISO-8859-1" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -27,14 +27,14 @@ ...@@ -27,14 +27,14 @@
// Required instantiation // Required instantiation
// codecvt<wchar_t, char, mbstate_t> // codecvt<wchar_t, char, mbstate_t>
// //
// Baseline test in ISO-8859-1 locale // Baseline test in ISO8859-1 locale
void test02() void test02()
{ {
using namespace std; using namespace std;
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 = locale("en_US.ISO-8859-1"); locale loc = locale(ISO_8859(1,en_US));
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 "en_US.ISO-8859-15" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -27,14 +27,14 @@ ...@@ -27,14 +27,14 @@
// Required instantiation // Required instantiation
// codecvt<wchar_t, char, mbstate_t> // codecvt<wchar_t, char, mbstate_t>
// //
// Baseline test in ISO-8859-15 locale // Baseline test in ISO8859-1 locale
void test03() void test03()
{ {
using namespace std; using namespace std;
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 = locale("en_US.ISO-8859-15"); locale loc = locale(ISO_8859(1,en_US));
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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US.ISO-8859-1" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -27,19 +27,19 @@ ...@@ -27,19 +27,19 @@
// Required instantiation // Required instantiation
// codecvt<wchar_t, char, mbstate_t> // codecvt<wchar_t, char, mbstate_t>
// //
// Test do_encoding with ISO-8859-1 locale. // Test do_encoding with ISO8859-1 locale.
void test02() void test02()
{ {
using namespace std; using namespace std;
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 = locale("en_US.ISO-8859-1"); locale loc = locale(ISO_8859(1,en_US));
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
int i = cvt->encoding(); int i = cvt->encoding();
VERIFY( i == 1 ); // ISO-8859-1 is a single-byte encoding VERIFY( i == 1 ); // ISO8859-1 is a single-byte encoding
} }
int main () int main ()
......
// { dg-require-namedlocale "en_US.ISO-8859-15" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -27,19 +27,19 @@ ...@@ -27,19 +27,19 @@
// Required instantiation // Required instantiation
// codecvt<wchar_t, char, mbstate_t> // codecvt<wchar_t, char, mbstate_t>
// //
// Test do_encoding with ISO-8859-15 locale. // Test do_encoding with ISO8859-1 locale.
void test03() void test03()
{ {
using namespace std; using namespace std;
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 = locale("en_US.ISO-8859-15"); locale loc = locale(ISO_8859(1,en_US));
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
int i = cvt->encoding(); int i = cvt->encoding();
VERIFY( i == 1 ); // ISO-8859-15 is a single-byte encoding VERIFY( i == 1 ); // ISO8859-1 is a single-byte encoding
} }
int main () int main ()
......
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US.ISO-8859-1" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -41,7 +41,7 @@ zero_state(std::mbstate_t& state) ...@@ -41,7 +41,7 @@ zero_state(std::mbstate_t& state)
// Required instantiation // Required instantiation
// codecvt<wchar_t, char, mbstate_t> // codecvt<wchar_t, char, mbstate_t>
// //
// Baseline test for ISO-8859-1. Converts entire charset. // Baseline test for ISO8859-1. Converts entire charset.
void test02() void test02()
{ {
using namespace std; using namespace std;
...@@ -90,7 +90,7 @@ void test02() ...@@ -90,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 = locale("en_US.ISO-8859-1"); locale loc = locale(ISO_8859(1,en_US));
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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US.ISO-8859-1" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -63,7 +63,7 @@ void test02() ...@@ -63,7 +63,7 @@ void test02()
"\xff"; "\xff";
int size = strlen(e_lit); int size = strlen(e_lit);
locale loc = locale("en_US.ISO-8859-1"); locale loc = locale(ISO_8859(1,en_US));
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 "en_US.ISO-8859-15" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -63,7 +63,7 @@ void test03() ...@@ -63,7 +63,7 @@ void test03()
"\xff"; "\xff";
int size = strlen(e_lit); int size = strlen(e_lit);
locale loc = locale("en_US.ISO-8859-15"); locale loc = locale(ISO_8859(1,en_US));
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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US.ISO-8859-1" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -32,12 +32,12 @@ void test02() ...@@ -32,12 +32,12 @@ 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 = locale("en_US.ISO-8859-1"); locale loc = locale(ISO_8859(1,en_US));
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
int k = cvt->max_length(); int k = cvt->max_length();
VERIFY( k == 1 ); // ISO-8859-1 is a single-byte encoding VERIFY( k == 1 ); // ISO8859-1 is a single-byte encoding
} }
int main () int main ()
......
// { dg-require-namedlocale "en_US.ISO-8859-15" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -32,12 +32,12 @@ void test03() ...@@ -32,12 +32,12 @@ 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 = locale("en_US.ISO-8859-15"); locale loc = locale(ISO_8859(1,en_US));
locale::global(loc); locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc); const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
int k = cvt->max_length(); int k = cvt->max_length();
VERIFY( k == 1 ); // ISO-8859-15 is a single-byte encoding VERIFY( k == 1 ); // ISO8859-1 is a single-byte encoding
} }
int main () int main ()
......
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US.ISO-8859-1" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -88,7 +88,7 @@ void test02() ...@@ -88,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 = locale("en_US.ISO-8859-1"); locale loc = locale(ISO_8859(1,en_US));
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 "en_US.ISO-8859-1" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -60,7 +60,7 @@ void test03() ...@@ -60,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 = locale("en_US.ISO-8859-1"); locale loc = locale(ISO_8859(1,en_US));
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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US.ISO-8859-1" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -73,7 +73,7 @@ void test02() ...@@ -73,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 = locale("en_US.ISO-8859-1"); locale loc = locale(ISO_8859(1,en_US));
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 "en_US.ISO-8859-15" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is> // 2003-02-06 Petur Runolfsson <peturr02@ru.is>
...@@ -87,7 +87,7 @@ void test03() ...@@ -87,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 = locale("en_US.ISO-8859-15"); locale loc = locale(ISO_8859(1,en_US));
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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// Copyright (C) 2011-2015 Free Software Foundation, Inc. // Copyright (C) 2011-2015 Free Software Foundation, Inc.
// //
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <locale> #include <locale>
#include <ext/pod_char_traits.h> #include <ext/pod_char_traits.h>
#include <testsuite_hooks.h>
#define mychar __gnu_cxx::character<unsigned short, int> #define mychar __gnu_cxx::character<unsigned short, int>
...@@ -84,7 +85,7 @@ void test01() ...@@ -84,7 +85,7 @@ void test01()
} }
{ {
locale loc2(locale::classic(), locale loc2(locale::classic(),
new codecvt_byname<mychar, char, mbstate_t>("de_DE")); new codecvt_byname<mychar, char, mbstate_t>(ISO_8859(15,de_DE)));
} }
} }
......
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -36,9 +36,9 @@ void test01() ...@@ -36,9 +36,9 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = locale("en_US"); locale loc_us = locale(ISO_8859(1,en_US));
locale loc_fr = locale("fr_FR"); locale loc_fr = locale(ISO_8859(15,fr_FR));
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <locale> #include <locale>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
// Check German "de_DE" locale. // Check German "de_DE.ISO8859-15" locale.
void test02() void test02()
{ {
using namespace std; using namespace std;
...@@ -36,9 +36,9 @@ void test02() ...@@ -36,9 +36,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = locale("en_US"); locale loc_us = locale(ISO_8859(1,en_US));
locale loc_fr = locale("fr_FR"); locale loc_fr = locale(ISO_8859(15,fr_FR));
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2003-02-24 Petur Runolfsson <peturr02@ru.is> // 2003-02-24 Petur Runolfsson <peturr02@ru.is>
...@@ -34,7 +34,7 @@ void test03() ...@@ -34,7 +34,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,de_DE));
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the collate facets // cache the collate facets
......
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -39,6 +39,6 @@ int main() ...@@ -39,6 +39,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -40,6 +40,6 @@ int main() ...@@ -40,6 +40,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -36,9 +36,9 @@ void test01() ...@@ -36,9 +36,9 @@ void test01()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = locale("en_US"); locale loc_us = locale(ISO_8859(1,en_US));
locale loc_fr = locale("fr_FR"); locale loc_fr = locale(ISO_8859(15,fr_FR));
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 );
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */ // { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" } // { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" } // { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <locale> #include <locale>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
// Check German "de_DE" locale. // Check German "de_DE.ISO8859-15" locale.
void test02() void test02()
{ {
using namespace std; using namespace std;
...@@ -40,9 +40,9 @@ void test02() ...@@ -40,9 +40,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = locale("en_US"); locale loc_us = locale(ISO_8859(1,en_US));
locale loc_fr = locale("fr_FR"); locale loc_fr = locale(ISO_8859(15,fr_FR));
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2003-02-24 Petur Runolfsson <peturr02@ru.is> // 2003-02-24 Petur Runolfsson <peturr02@ru.is>
...@@ -34,7 +34,7 @@ void test03() ...@@ -34,7 +34,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,de_DE));
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the collate facets // cache the collate facets
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */ // { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" } // { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" } // { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -43,6 +43,6 @@ int main() ...@@ -43,6 +43,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */ // { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" } // { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" } // { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -44,6 +44,6 @@ int main() ...@@ -44,6 +44,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <locale> #include <locale>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
// Check German "de_DE" locale. // Check German "de_DE.ISO8859-15" locale.
void test02() void test02()
{ {
using namespace std; using namespace std;
...@@ -36,9 +36,9 @@ void test02() ...@@ -36,9 +36,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = locale("en_US"); locale loc_us = locale(ISO_8859(1,en_US));
locale loc_fr = locale("fr_FR"); locale loc_fr = locale(ISO_8859(15,fr_FR));
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -39,6 +39,6 @@ int main() ...@@ -39,6 +39,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -40,6 +40,6 @@ int main() ...@@ -40,6 +40,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */ // { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" } // { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" } // { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <locale> #include <locale>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
// Check German "de_DE" locale. // Check German "de_DE.ISO8859-15" locale.
void test02() void test02()
{ {
using namespace std; using namespace std;
...@@ -39,9 +39,9 @@ void test02() ...@@ -39,9 +39,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = locale("en_US"); locale loc_us = locale(ISO_8859(1,en_US));
locale loc_fr = locale("fr_FR"); locale loc_fr = locale(ISO_8859(15,fr_FR));
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 );
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */ // { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" } // { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" } // { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -43,6 +43,6 @@ int main() ...@@ -43,6 +43,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */ // { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" } // { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" } // { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -44,6 +44,6 @@ int main() ...@@ -44,6 +44,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -35,9 +35,9 @@ void test02() ...@@ -35,9 +35,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = locale("en_US"); locale loc_us = locale(ISO_8859(1,en_US));
locale loc_fr = locale("fr_FR"); locale loc_fr = locale(ISO_8859(15,fr_FR));
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2003-02-24 Petur Runolfsson <peturr02@ru.is> // 2003-02-24 Petur Runolfsson <peturr02@ru.is>
...@@ -33,7 +33,7 @@ void test03() ...@@ -33,7 +33,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,de_DE));
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the collate facets // cache the collate facets
......
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -34,6 +34,6 @@ int main() ...@@ -34,6 +34,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -35,6 +35,6 @@ int main() ...@@ -35,6 +35,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */ // { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" } // { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" } // { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -39,9 +39,9 @@ void test02() ...@@ -39,9 +39,9 @@ void test02()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_us = locale("en_US"); locale loc_us = locale(ISO_8859(1,en_US));
locale loc_fr = locale("fr_FR"); locale loc_fr = locale(ISO_8859(15,fr_FR));
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2003-02-24 Petur Runolfsson <peturr02@ru.is> // 2003-02-24 Petur Runolfsson <peturr02@ru.is>
...@@ -33,7 +33,7 @@ void test03() ...@@ -33,7 +33,7 @@ void test03()
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,de_DE));
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
// cache the collate facets // cache the collate facets
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */ // { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" } // { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" } // { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -38,6 +38,6 @@ int main() ...@@ -38,6 +38,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
// { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */ // { dg-xfail-if "" { "*-*-hpux11.23" } { "*" } { "" } } */
// { dg-options "-finput-charset=ISO8859-1" } // { dg-options "-finput-charset=ISO8859-1" }
// { dg-require-iconv "ISO8859-1" } // { dg-require-iconv "ISO8859-1" }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -39,6 +39,6 @@ int main() ...@@ -39,6 +39,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -34,10 +34,10 @@ void test01() ...@@ -34,10 +34,10 @@ void test01()
string str; string str;
locale loc_c = locale::classic(); locale loc_c = locale::classic();
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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>(ISO_8859(15,de_DE)));
str = loc_byname.name(); str = loc_byname.name();
VERIFY( loc_de != loc_byname ); VERIFY( loc_de != loc_byname );
...@@ -45,7 +45,7 @@ void test01() ...@@ -45,7 +45,7 @@ void test01()
// cache the collate facets // cache the collate facets
const collate<char>& coll_de = use_facet<collate<char> >(loc_de); const collate<char>& coll_de = use_facet<collate<char> >(loc_de);
// Check German "de_DE" locale. // Check German "de_DE.ISO8859-15" locale.
int i1; int i1;
int i2; int i2;
long l1; long l1;
......
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-do run { xfail { ! { *-*-linux* *-*-gnu* } } } } // { dg-do run { xfail { ! { *-*-linux* *-*-gnu* } } } }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// Copyright (C) 2000-2015 Free Software Foundation, Inc. // Copyright (C) 2000-2015 Free Software Foundation, Inc.
// //
...@@ -59,8 +59,8 @@ void test02() ...@@ -59,8 +59,8 @@ void test02()
v_c[i] = mask_is; v_c[i] = mask_is;
} }
// "de_DE" // "de_DE.ISO8859-15"
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -42,6 +42,6 @@ int main() ...@@ -42,6 +42,6 @@ int main()
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
two.push_back(&test03); two.push_back(&test03);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -43,6 +43,6 @@ int main() ...@@ -43,6 +43,6 @@ int main()
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
two.push_back(&test03); two.push_back(&test03);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-do run { xfail { ! { *-*-linux* *-*-gnu* } } } } // { dg-do run { xfail { ! { *-*-linux* *-*-gnu* } } } }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// Copyright (C) 2000-2015 Free Software Foundation, Inc. // Copyright (C) 2000-2015 Free Software Foundation, Inc.
// //
...@@ -59,8 +59,8 @@ void test02() ...@@ -59,8 +59,8 @@ void test02()
v_c[i] = mask_is; v_c[i] = mask_is;
} }
// "de_DE" // "de_DE.ISO8859-15"
locale loc_de = locale("de_DE"); locale loc_de = locale(ISO_8859(15,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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -37,6 +37,6 @@ int main() ...@@ -37,6 +37,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -38,6 +38,6 @@ int main() ...@@ -38,6 +38,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -37,6 +37,6 @@ int main() ...@@ -37,6 +37,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -37,6 +37,6 @@ int main() ...@@ -37,6 +37,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -37,6 +37,6 @@ int main() ...@@ -37,6 +37,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -37,6 +37,6 @@ int main() ...@@ -37,6 +37,6 @@ int main()
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
two.push_back(&test02); two.push_back(&test02);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "en_US.ISO-8859-1" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-03-12 Petur Runolfsson <peturr02@ru.is> // 2003-03-12 Petur Runolfsson <peturr02@ru.is>
...@@ -31,7 +31,7 @@ void test02() ...@@ -31,7 +31,7 @@ void test02()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc = locale("en_US.ISO-8859-1"); locale loc = locale(ISO_8859(1,en_US));
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 "de_DE" } // { dg-require-namedlocale "de_DE.ISO8859-15" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_env("de_DE", "LANG", two); run_tests_wrapped_env(ISO_8859(15,de_DE), "LANG", two);
return 0; return 0;
} }
// { dg-require-namedlocale "ja_JP.eucjp" } // { dg-require-namedlocale "ja_JP.eucJP" }
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com> // 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
...@@ -32,6 +32,6 @@ int main() ...@@ -32,6 +32,6 @@ int main()
using namespace __gnu_test; using namespace __gnu_test;
func_callback two; func_callback two;
two.push_back(&test01); two.push_back(&test01);
run_tests_wrapped_locale("ja_JP.eucjp", two); run_tests_wrapped_locale("ja_JP.eucJP", two);
return 0; return 0;
} }
// { dg-require-namedlocale "es_MX" } // { dg-require-namedlocale "es_MX.ISO8859-1" }
// 2000-08-31 Benjamin Kosnik <bkoz@redhat.com> // 2000-08-31 Benjamin Kosnik <bkoz@redhat.com>
...@@ -84,7 +84,7 @@ void test02() ...@@ -84,7 +84,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 = locale("es_MX"); locale loc03 = locale(ISO_8859(1,es_MX));
} }
} }
......
// { dg-require-namedlocale "" } // { dg-require-namedlocale "" }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// Copyright (C) 2003-2015 Free Software Foundation, Inc. // Copyright (C) 2003-2015 Free Software Foundation, Inc.
// //
...@@ -106,7 +106,7 @@ void test01(int iters) ...@@ -106,7 +106,7 @@ void test01(int iters)
std::locale loc1 = std::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);
std::locale loc3 = std::locale("en_US"); std::locale loc3 = std::locale(ISO_8859(1,en_US));
std::locale loc4(loc3, std::locale::classic(), std::locale loc4(loc3, std::locale::classic(),
std::locale::numeric); std::locale::numeric);
} }
......
// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } // { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } }
// { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* } } // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* } }
// { dg-options "-pthreads" { target *-*-solaris* } } // { dg-options "-pthreads" { target *-*-solaris* } }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// Copyright (C) 2004-2015 Free Software Foundation, Inc. // Copyright (C) 2004-2015 Free Software Foundation, Inc.
// //
...@@ -39,7 +39,7 @@ void* thread_main(void*) ...@@ -39,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] = std::locale(j % 2 ? "en_US" : "fr_FR"); loc[j] = std::locale(j % 2 ? ISO_8859(1,en_US) : ISO_8859(15,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* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } } // { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* } }
// { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* } } // { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* } }
// { dg-options "-pthreads" { target *-*-solaris* } } // { dg-options "-pthreads" { target *-*-solaris* } }
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// Copyright (C) 2004-2015 Free Software Foundation, Inc. // Copyright (C) 2004-2015 Free Software Foundation, Inc.
// //
...@@ -53,7 +53,7 @@ main() ...@@ -53,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] = std::locale(j % 2 ? "en_US" : "fr_FR"); loc[j] = std::locale(j % 2 ? ISO_8859(1,en_US) : ISO_8859(15,fr_FR));
for (int i = 0; i < max_thread_count; i++) for (int i = 0; i < max_thread_count; i++)
pthread_create(&tid[i], 0, thread_main, 0); pthread_create(&tid[i], 0, thread_main, 0);
......
// { dg-require-namedlocale "fr_FR" } // { dg-require-namedlocale "fr_FR.ISO8859-15" }
// 2000-09-13 Benjamin Kosnik <bkoz@redhat.com> // 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
...@@ -87,10 +87,10 @@ void test01() ...@@ -87,10 +87,10 @@ void test01()
// 3 // 3
// explicit locale(const char* std_name) // explicit locale(const char* std_name)
locale loc06 = locale("fr_FR"); locale loc06 = locale(ISO_8859(15,fr_FR));
VERIFY( loc06 != loc01 ); VERIFY( loc06 != loc01 );
VERIFY( loc06 != loc02 ); VERIFY( loc06 != loc02 );
VERIFY( loc06.name() == "fr_FR"); VERIFY( loc06.name() == ISO_8859(15,fr_FR));
locale loc07(""); locale loc07("");
VERIFY( loc07 != loc02 ); VERIFY( loc07 != loc02 );
VERIFY( loc07.name() != "" ); VERIFY( loc07.name() != "" );
...@@ -113,7 +113,7 @@ void test01() ...@@ -113,7 +113,7 @@ void test01()
{ {
// This is the same as 5 only use "C" for loc("C") // This is the same as 5 only use "C" for loc("C")
locale loc09(loc06, "C", locale::ctype); locale loc09(loc06, "C", locale::ctype);
VERIFY( loc09.name() != "fr_FR" ); VERIFY( loc09.name() != ISO_8859(15,fr_FR) );
VERIFY( loc09.name() != "C" ); VERIFY( loc09.name() != "C" );
VERIFY( loc09.name() != "*" ); VERIFY( loc09.name() != "*" );
VERIFY( loc09 != loc01 ); VERIFY( loc09 != loc01 );
...@@ -143,11 +143,11 @@ void test01() ...@@ -143,11 +143,11 @@ void test01()
{ VERIFY( false ); } { VERIFY( false ); }
locale loc14(loc06, "C", locale::none); locale loc14(loc06, "C", locale::none);
VERIFY( loc14.name() == "fr_FR" ); VERIFY( loc14.name() == ISO_8859(15,fr_FR) );
VERIFY( loc14 == loc06 ); VERIFY( loc14 == loc06 );
locale loc15(loc06, "C", locale::collate ); locale loc15(loc06, "C", locale::collate );
VERIFY( loc15.name() != "fr_FR" ); VERIFY( loc15.name() != ISO_8859(15,fr_FR) );
VERIFY( loc15.name() != "C" ); VERIFY( loc15.name() != "C" );
VERIFY( loc15.name() != "*" ); VERIFY( loc15.name() != "*" );
VERIFY( loc15.name() != loc09.name() ); VERIFY( loc15.name() != loc09.name() );
...@@ -161,7 +161,7 @@ void test01() ...@@ -161,7 +161,7 @@ void test01()
{ {
// This is the exact same as 4, with locale("C") for "C" // This is the exact same as 4, with locale("C") for "C"
locale loc09(loc06, loc01, locale::ctype); locale loc09(loc06, loc01, locale::ctype);
VERIFY( loc09.name() != "fr_FR" ); VERIFY( loc09.name() != ISO_8859(15,fr_FR) );
VERIFY( loc09.name() != "C" ); VERIFY( loc09.name() != "C" );
VERIFY( loc09.name() != "*" ); VERIFY( loc09.name() != "*" );
VERIFY( loc09 != loc01 ); VERIFY( loc09 != loc01 );
...@@ -191,11 +191,11 @@ void test01() ...@@ -191,11 +191,11 @@ void test01()
{ VERIFY( false ); } { VERIFY( false ); }
locale loc14(loc06, loc01, locale::none); locale loc14(loc06, loc01, locale::none);
VERIFY( loc14.name() == "fr_FR" ); VERIFY( loc14.name() == ISO_8859(15,fr_FR) );
VERIFY( loc14 == loc06 ); VERIFY( loc14 == loc06 );
locale loc15(loc06, loc01, locale::collate); locale loc15(loc06, loc01, locale::collate);
VERIFY( loc15.name() != "fr_FR" ); VERIFY( loc15.name() != ISO_8859(15,fr_FR) );
VERIFY( loc15.name() != "C" ); VERIFY( loc15.name() != "C" );
VERIFY( loc15.name() != "*" ); VERIFY( loc15.name() != "*" );
VERIFY( loc15.name() != loc09.name() ); VERIFY( loc15.name() != loc09.name() );
......
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// Copyright (C) 2008-2015 Free Software Foundation, Inc. // Copyright (C) 2008-2015 Free Software Foundation, Inc.
// //
...@@ -29,7 +29,7 @@ void test01() ...@@ -29,7 +29,7 @@ void test01()
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale other(locale("C")); locale other(locale("C"));
locale one(locale("en_US"), new ctype<char>()); locale one(locale(ISO_8859(1,en_US)), new ctype<char>());
locale loc(other, one, locale::collate); locale loc(other, one, locale::collate);
VERIFY( one.name() == "*" ); VERIFY( one.name() == "*" );
......
// { dg-require-namedlocale "en_US" } // { dg-require-namedlocale "en_US.ISO8859-1" }
// Copyright (C) 2008-2015 Free Software Foundation, Inc. // Copyright (C) 2008-2015 Free Software Foundation, Inc.
// //
...@@ -28,7 +28,7 @@ void test01() ...@@ -28,7 +28,7 @@ void test01()
using namespace std; using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
locale loc(locale("C"), "en_US", locale::collate); locale loc(locale("C"), ISO_8859(1,en_US), locale::collate);
locale loc_copy(loc.name().c_str()); locale loc_copy(loc.name().c_str());
const moneypunct<char, true>& mpunt = const moneypunct<char, true>& mpunt =
......
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