* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99889
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
* libsupc++/eh_personality.cc (gcc_unreachable): Define.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
wmemset(i_ref, 0xdeadbeef, size + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
wmemset(i_ref, 0xdeadbeef, size + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
wmemset(i_ref, 0xdeadbeef, esize + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
wmemset(i_ref, 0xdeadbeef, size + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
wmemset(i_ref, 0xdeadbeef, esize + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
int_type* ito = i_arr;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
"\xff";
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
"\xff";
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
int esize = strlen(e_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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
const ext_type* e_lit = "a\xc0\xff";
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
memset(e_ref, 0xf0, size + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
memset(e_ref, 0xf0, size + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
memset(e_ref, 0xf0, esize + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
memset(e_ref, 0xf0, size + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
memset(e_ref, 0xf0, size + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
memset(e_ref, 0xf0, size + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
memset(e_ref, 0xf0, size + 1);
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);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// cache the collate facets
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
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>
-// 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
// software; you can redistribute it and/or modify it under the
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// 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
#include <locale>
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// 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>
-// 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
// software; you can redistribute it and/or modify it under the
// 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>
#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>
-// 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
// software; you can redistribute it and/or modify it under the
// 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>
#define main discard_main_1
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// 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>
-// 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
// software; you can redistribute it and/or modify it under the
// 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 <testsuite_hooks.h>
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
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>
-// 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
// software; you can redistribute it and/or modify it under the
// 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>
#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>
-// 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
// software; you can redistribute it and/or modify it under the
// 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>
#define main discard_main_1
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// cache the collate facets
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// 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>
-// 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
// software; you can redistribute it and/or modify it under the
// 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 <testsuite_hooks.h>
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// 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>
-// 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
// software; you can redistribute it and/or modify it under the
// 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>
#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>
-// 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
// software; you can redistribute it and/or modify it under the
// 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>
#define main discard_main_2
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
string str;
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();
locale loc_byname(locale::classic(), new collate_byname<char>("de_DE"));
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
// { dg-do run { xfail *-*-![linux]* } }
// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
// Free Software Foundation, Inc.
}
// "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);
for (int i = 0; i < max; ++i)
{
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
// { dg-do run { xfail *-*-![linux]* } }
// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
// Free Software Foundation, Inc.
}
// "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);
for (int i = 0; i < max; ++i)
{
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
using namespace std;
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 wchar_t* wstrlit = L"\x80";
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
using namespace std;
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);
char c = 0xff;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
using namespace std;
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 char* strlit = "\xc2\x80";
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// 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.
{
- 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
// software; you can redistribute it and/or modify it under the
times_to_fail = i;
try
{
- std::locale loc1 = __gnu_test::try_named_locale("");
+ std::locale loc1 = std::locale("");
std::locale loc2(loc1, std::locale::classic(),
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
// software; you can redistribute it and/or modify it under the
try
{
locale loc1 = locale::classic();
- locale loc2 = __gnu_test::try_named_locale("");
+ locale loc2 = locale("");
VERIFY( !has_facet<MyFacet>(loc2) );
loc1.combine<MyFacet>(loc2);
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { 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
// software; you can redistribute it and/or modify it under the
std::locale loc_c = std::locale::classic();
std::locale loc[max_locales];
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)
{
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { 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
// software; you can redistribute it and/or modify it under the
pthread_t tid[max_thread_count];
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++)
pthread_create(&tid[i], NULL, thread_main, 0);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// 3
// 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 != loc02);
VERIFY (loc06.name() == "fr_FR");
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
const char* LC_ALL_orig = getenv("LC_ALL");
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" );
setenv("LC_ALL", LC_ALL_orig ? LC_ALL_orig : "", 1);
}
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// Check that a "POSIX" LC_ALL is equivalent to "C".
if (!setenv("LC_ALL", "POSIX", 1))
{
- locale loc = __gnu_test::try_named_locale("");
+ locale loc = locale("");
VERIFY( loc.name() == "C" );
}
setenv("LC_ALL", "", 1);
// Check that a "en_PH" LC_ALL is equivalent to "en_PH".
if (!setenv("LC_ALL", "en_PH", 1))
{
- locale loc = __gnu_test::try_named_locale("");
+ locale loc = locale("");
VERIFY( loc.name() == "en_PH" );
}
setenv("LC_ALL", "", 1);
{
if (!setenv("LC_ALL", "en_PH", 1))
{
- locale loc = __gnu_test::try_named_locale("");
+ locale loc = locale("");
VERIFY( loc.name() == "en_PH" );
}
setenv("LC_ALL", "", 1);
// Check the default set by LANG.
if (!setenv("LANG", "fr_FR", 1))
{
- locale loc = __gnu_test::try_named_locale("");
+ locale loc = locale("");
VERIFY( loc.name() == "fr_FR" );
}
// Setting a category in the "C" default.
if (!setenv("LC_COLLATE", "de_DE", 1))
{
- locale loc = __gnu_test::try_named_locale("");
+ locale loc = locale("");
#if _GLIBCXX_NUM_CATEGORIES
VERIFY( loc.name() == "LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=C;"
// Changing the LANG default while LC_COLLATE is set.
if (!setenv("LANG", "fr_FR", 1))
{
- locale loc = __gnu_test::try_named_locale("");
+ locale loc = locale("");
#if _GLIBCXX_NUM_CATEGORIES
VERIFY( loc.name() == "LC_CTYPE=fr_FR;LC_NUMERIC=fr_FR;"
"LC_TIME=fr_FR;LC_COLLATE=de_DE;LC_MONETARY=fr_FR;"
#if _GLIBCXX_NUM_CATEGORIES
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;"
"LC_TIME=fr_FR;LC_COLLATE=de_DE;LC_MONETARY=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>
-// 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
// software; you can redistribute it and/or modify it under the
// construct a locale object with the specialized facet.
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(),
new numpunct_byname<char>("fr_FR"));
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
{
bool test __attribute__((unused)) = true;
- std::locale loc_1 = __gnu_test::try_named_locale("");
- std::locale loc_2 = __gnu_test::try_named_locale("");
+ std::locale loc_1 = std::locale("");
+ std::locale loc_2 = std::locale("");
VERIFY( loc_1 == loc_2 );
}
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
using namespace std;
bool test __attribute__((unused)) = true;
- const locale loc_is = __gnu_test::try_named_locale("is_IS");
- const locale loc_en = __gnu_test::try_named_locale("en_US");
+ const locale loc_is = locale("is_IS");
+ const locale loc_en = locale("en_US");
const locale loc(loc_is, loc_en, locale::monetary);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// named locales work.
if (testph && testmx)
{
- const locale loc_ph = __gnu_test::try_named_locale(ph.c_str());
- const locale loc_mx = __gnu_test::try_named_locale(mx.c_str());
+ const locale loc_ph = locale(ph.c_str());
+ const locale loc_mx = locale(mx.c_str());
// 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());
- const locale loc_env_2 = __gnu_test::try_named_locale("");
+ const locale loc_env_2 = locale("");
VERIFY( loc_env_1 == loc_env_2 );
// Change global locale.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// cache the messages facets
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// cache the messages facets
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
VERIFY( loc_c != loc_us );
VERIFY( loc_us != loc_fr );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
const char* dir = LOCALEDIR;
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();
locale loc_byname(locale::classic(), new messages_byname<char>("de_DE"));
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
- locale loc_us = __gnu_test::try_named_locale("en_US");
+ locale loc_us = locale("en_US");
iterator_type end;
istringstream iss;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
// basic construction
- locale loc_de = __gnu_test::try_named_locale("de_DE@euro");
+ locale loc_de = locale("de_DE@euro");
iterator_type end;
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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
- locale loc_us = __gnu_test::try_named_locale("en_US");
+ locale loc_us = locale("en_US");
iterator_type end;
istringstream iss;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// total EPA budget FY 2002
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
iterator_type end01, end02;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
iterator_type end01, end02;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_de = __gnu_test::try_named_locale("de_DE@euro");
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
+ locale loc_de = locale("de_DE@euro");
+ locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_de );
VERIFY( loc_c != loc_hk );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
iterator_type end, end02;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
iterator_type end, end01, end02;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// total EPA budget FY 2002
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// total EPA budget FY 2002
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// input less than frac_digits
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
- locale loc_us = __gnu_test::try_named_locale("en_US");
+ locale loc_us = locale("en_US");
iterator_type end;
wistringstream iss;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
// basic construction
- locale loc_de = __gnu_test::try_named_locale("de_DE@euro");
+ locale loc_de = locale("de_DE@euro");
iterator_type end;
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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
- locale loc_us = __gnu_test::try_named_locale("en_US");
+ locale loc_us = locale("en_US");
iterator_type end;
wistringstream iss;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// total EPA budget FY 2002
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
iterator_type end01, end02;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
iterator_type end01, end02;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_de = __gnu_test::try_named_locale("de_DE@euro");
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
+ locale loc_de = locale("de_DE@euro");
+ locale loc_hk = locale("en_HK");
VERIFY( loc_hk != loc_de );
VERIFY( loc_c != loc_hk );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
iterator_type end, end02;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
iterator_type end, end01, end02;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// total EPA budget FY 2002
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// total EPA budget FY 2002
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// input less than frac_digits
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// 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
// software; you can redistribute it and/or modify it under the
using namespace std;
bool test __attribute__((unused)) = true;
- locale l1 = __gnu_test::try_named_locale("de_DE");
- locale l2 = __gnu_test::try_named_locale("es_ES");
+ locale l1 = locale("de_DE");
+ locale l2 = locale("es_ES");
const money_put<char>& mp = use_facet<money_put<char> >(l1);
ostringstream oss;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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
typedef moneypunct<char, true> __money_true;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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
typedef moneypunct<wchar_t, true> __money_true;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
string str;
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
str = loc_de.name();
locale loc_byname(locale::classic(), new moneypunct_byname<char>("de_DE"));
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
istringstream iss;
// 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);
const num_get<char>& ng = use_facet<num_get<char> >(iss.getloc());
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
double d = 0.0;
istringstream iss;
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
iss.imbue(loc_de);
const num_get<char>& ng = use_facet<num_get<char> >(iss.getloc());
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
// A locale that expects grouping
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
istringstream iss;
iss.imbue(loc_de);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 2001-11-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
wistringstream iss;
// 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);
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>
-// 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
// software; you can redistribute it and/or modify it under the
double d = 0.0;
wistringstream iss;
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
iss.imbue(loc_de);
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>
-// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
// A locale that expects grouping
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
wistringstream iss;
iss.imbue(loc_de);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// cache the numpunct facets
+// { dg-require-namedlocale "" }
+
// 2005-04-08 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation
bool test __attribute__((unused)) = true;
// A locale that expects grouping.
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
const string empty;
string result;
+// { dg-require-namedlocale "" }
+
// 2005-04-17 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation
bool test __attribute__((unused)) = true;
// A locale that expects grouping.
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
const string empty;
string result;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
// A locale that expects grouping.
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
const string empty;
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
// software; you can redistribute it and/or modify it under the
using namespace std;
bool test __attribute__((unused)) = true;
- locale l1 = __gnu_test::try_named_locale("de_DE");
- locale l2 = __gnu_test::try_named_locale("es_ES");
+ locale l1 = locale("de_DE");
+ locale l2 = locale("es_ES");
const num_put<char>& np = use_facet<num_put<char> >(l1);
ostringstream oss;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// cache the numpunct facets
+// { dg-require-namedlocale "" }
+
// 2005-04-08 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation
bool test __attribute__((unused)) = true;
// A locale that expects grouping.
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
const wstring empty;
wstring result;
+// { dg-require-namedlocale "" }
+
// 2005-04-17 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation
bool test __attribute__((unused)) = true;
// A locale that expects grouping.
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
const wstring empty;
wstring result;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// sanity check the data is correct.
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
// A locale that expects grouping.
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
const wstring empty;
wstring result;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
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);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
locale loc_c = locale::classic();
- locale loc_us = __gnu_test::try_named_locale("en_US");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_us = locale("en_US");
+ locale loc_fr = locale("fr_FR");
+ locale loc_de = locale("de_DE");
VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
string str;
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_de = locale("de_DE");
str = loc_de.name();
locale loc_byname(locale::classic(), new numpunct_byname<char>("de_DE"));
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
// 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
iterator_type end;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity checks.
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_hk = locale("en_HK");
+ locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
// 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
iterator_type end;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity checks.
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_hk = locale("en_HK");
+ locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de );
+// { dg-require-namedlocale "" }
+
// 2003-12-17 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2003 Free Software Foundation
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;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity checks.
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_hk = locale("en_HK");
+ locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity checks.
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_hk = locale("en_HK");
+ locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity checks.
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 );
const string empty;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
const string empty;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity checks.
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 );
const wstring empty;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
const wstring empty;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity checks.
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_hk = locale("en_HK");
+ locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity checks.
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
+ locale loc_hk = locale("en_HK");
+ locale loc_de = locale("de_DE");
VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check.
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// 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
// software; you can redistribute it and/or modify it under the
using namespace std;
bool test __attribute__((unused)) = true;
- locale l1 = __gnu_test::try_named_locale("de_DE");
- locale l2 = __gnu_test::try_named_locale("es_ES");
+ locale l1 = locale("de_DE");
+ locale l2 = locale("es_ES");
const time_put<char> &tp = use_facet<time_put<char> >(l1);
ostringstream oss;
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
// basic construction and sanity check
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 );
// create an ostream-derived object, cache the time_put facet
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
+// { dg-require-namedlocale "" }
+
// 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
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
Buf buf;
- std::locale loc(__gnu_test::try_named_locale("fr_FR"));
+ std::locale loc(std::locale("fr_FR"));
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
// software; you can redistribute it and/or modify it under the
filebuf fb;
- fb.pubimbue(__gnu_test::try_named_locale("en_US"));
- fb.pubimbue(__gnu_test::try_named_locale("en_US"));
+ fb.pubimbue(locale("en_US"));
+ fb.pubimbue(locale("en_US"));
fb.open("tmp_13171-1", ios_base::out);
fb.sputc('F');
+// { dg-require-namedlocale "" }
// { dg-require-fork "" }
// { dg-require-mkfifo "" }
using namespace std;
using namespace __gnu_test;
- locale loc_fr(__gnu_test::try_named_locale("fr_FR"));
- locale loc_en(__gnu_test::try_named_locale("en_US"));
+ locale loc_fr(locale("fr_FR"));
+ locale loc_en(locale("en_US"));
const char* name = "tmp_fifo_13171-2";
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
// software; you can redistribute it and/or modify it under the
using namespace std;
filebuf fb;
- fb.pubimbue(locale(__gnu_test::try_named_locale("en_US"),
- new Cvt));
+ fb.pubimbue(locale(locale("en_US"), new Cvt));
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.pubsync();
fb.close();
+// { dg-require-namedlocale "" }
// { dg-require-fork "" }
// { dg-require-mkfifo "" }
using namespace std;
using namespace __gnu_test;
- locale loc_en(__gnu_test::try_named_locale("en_US"));
- locale loc_fr(__gnu_test::try_named_locale("fr_FR"));
+ locale loc_en(locale("en_US"));
+ locale loc_fr(locale("fr_FR"));
const char* name = "tmp_fifo_13582-2";
unlink(name);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
Buf fb;
- locale loc_us = __gnu_test::try_named_locale("en_US");
+ locale loc_us = locale("en_US");
fb.pubimbue(loc_us);
fb.open("tmp_14975-1", ios_base::out);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
VERIFY( p != bad);
// 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);
VERIFY( ob.getloc() == loc_de );
}
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
std::filebuf ob;
VERIFY( ob.getloc() == loc );
- locale::global(__gnu_test::try_named_locale("en_US"));
+ locale::global(locale("en_US"));
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);
VERIFY( ob.getloc() == loc_de );
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
// software; you can redistribute it and/or modify it under the
using namespace std;
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");
-// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
Buf buf;
- std::locale loc(__gnu_test::try_named_locale("fr_FR"));
+ std::locale loc(std::locale("fr_FR"));
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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
using namespace std;
- locale::global(__gnu_test::try_named_locale("fr_FR"));
+ locale::global(locale("fr_FR"));
ios_base::sync_with_stdio(false);
- locale::global(__gnu_test::try_named_locale("en_US"));
- cin.imbue(__gnu_test::try_named_locale("en_US"));
- cout.imbue(__gnu_test::try_named_locale("en_US"));
- cerr.imbue(__gnu_test::try_named_locale("en_US"));
- clog.imbue(__gnu_test::try_named_locale("de_DE"));
- wcin.imbue(__gnu_test::try_named_locale("en_US"));
- wcout.imbue(__gnu_test::try_named_locale("en_US"));
- wcerr.imbue(__gnu_test::try_named_locale("en_US"));
- wclog.imbue(__gnu_test::try_named_locale("de_DE"));
+ locale::global(locale("en_US"));
+ cin.imbue(locale("en_US"));
+ cout.imbue(locale("en_US"));
+ cerr.imbue(locale("en_US"));
+ clog.imbue(locale("de_DE"));
+ wcin.imbue(locale("en_US"));
+ wcout.imbue(locale("en_US"));
+ wcerr.imbue(locale("en_US"));
+ wclog.imbue(locale("de_DE"));
cout << 'f' << endl;
cerr << 'r' << endl;
+// { dg-require-namedlocale "" }
// { dg-require-fork "" }
// { dg-require-mkfifo "" }
// 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
// software; you can redistribute it and/or modify it under the
using namespace std;
using namespace __gnu_test;
- locale loc_en(__gnu_test::try_named_locale("en_US"));
- locale loc_fr(__gnu_test::try_named_locale("fr_FR"));
+ locale loc_en(locale("en_US"));
+ locale loc_fr(locale("fr_FR"));
const char* name = "tmp_fifo_13582-2";
unlink(name);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
using namespace std;
- locale loc_en(__gnu_test::try_named_locale("en_US"));
- locale loc_fr(__gnu_test::try_named_locale("fr_FR"));
+ locale loc_en(locale("en_US"));
+ locale loc_fr(locale("fr_FR"));
const char* name = "tmp_13582-3.tst";
+// { dg-require-namedlocale "" }
// { dg-require-fork "" }
// { dg-require-mkfifo "" }
using namespace __gnu_test;
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";
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
VERIFY( p != bad);
// 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);
VERIFY( ob.getloc() == loc_de );
}
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
std::wfilebuf ob;
VERIFY( ob.getloc() == loc );
- locale::global(__gnu_test::try_named_locale("en_US"));
+ locale::global(locale("en_US"));
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);
VERIFY( ob.getloc() == loc_de );
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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
wfilebuf fb;
- locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
+ locale loc(locale("en_US.UTF-8"));
fb.pubimbue(loc);
fb.pubsetbuf(0, 0);
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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
wfilebuf fb;
- locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
+ locale loc(locale("en_US.UTF-8"));
fb.pubimbue(loc);
fb.pubsetbuf(0, 0);
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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
wfilebuf fb;
- locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
+ locale loc(locale("en_US.UTF-8"));
fb.pubimbue(loc);
fb.open("tmp_11305-3", ios_base::out);
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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
wfilebuf fb;
- locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
+ locale loc(locale("en_US.UTF-8"));
fb.pubimbue(loc);
fb.open("tmp_11405-4", ios_base::out);
wfilebuf::int_type n1 = fb.sputc(0x20000000);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
const size_t wlen = sizeof(wstr) / sizeof(wstr[0]);
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");
for (int i = 0; i < loops; ++i)
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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;
wchar_t buf[size];
+// { dg-require-namedlocale "" }
+
// 2003-10-07 Petur Runolfsson <peturr02@ru.is>
//
// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
const size_t wlen = sizeof(wstr) / sizeof(wstr[0]);
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");
for (int i = 0; i < loops; ++i)
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
const size_t clen = sizeof(cstr) / sizeof(cstr[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");
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
// software; you can redistribute it and/or modify it under the
fbout.close();
wfilebuf fbin;
- locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
+ locale loc(locale("en_US.UTF-8"));
fbin.pubimbue(loc);
fbin.open(name_01, ios_base::in);
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
// software; you can redistribute it and/or modify it under the
fbout.close();
wfilebuf fbin;
- locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
+ locale loc(locale("en_US.UTF-8"));
fbin.pubimbue(loc);
fbin.open(name_02, ios_base::in);
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
// software; you can redistribute it and/or modify it under the
fbout.close();
wfilebuf fbin;
- locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
+ locale loc(locale("en_US.UTF-8"));
fbin.pubimbue(loc);
fbin.pubsetbuf(0, 0);
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
// software; you can redistribute it and/or modify it under the
fbout.close();
wfilebuf fbin;
- locale loc(__gnu_test::try_named_locale("en_US.UTF-8"));
+ locale loc(locale("en_US.UTF-8"));
fbin.pubimbue(loc);
fbin.pubsetbuf(0, 0);
fbin.open(name_04, ios_base::in);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
const size_t clen = sizeof(cstr) / sizeof(cstr[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");
fwrite(cstr, 1, clen, file);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
const size_t wlen = sizeof(wstr) / sizeof(wstr[0]);
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");
for (int i = 0; i < loops; ++i)
+// { dg-require-namedlocale "" }
+
// 2003-09-04 Petur Runolfsson <peturr02@ru.is>
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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;
fb_out.pubimbue(loc);
fb_in_out.pubimbue(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
wfilebuf fb;
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");
setvbuf(file, 0, _IONBF, 0);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
putc(static_cast<unsigned char>(i), 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];
wfilebuf fb;
fb.pubimbue(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
typedef std::ios_base::fmtflags fmtflags;
typedef std::ios_base::iostate iostate;
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_02(NULL);
ios_01.imbue(loc_c);
+// { dg-require-namedlocale "" }
+
// 1999-11-15 Kevin Ediger <kediger@licor.com>
// test the floating point inserters (facet num_put)
os2.setf(ios::fixed);
// 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 << fixed << setprecision(3) << val2 << endl;
os2 << endl;
+// { dg-require-namedlocale "" }
+
// Copyright (C) 2005 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
os2.setf(wios::fixed);
// 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 << fixed << setprecision(3) << val2 << 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
-// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
Buf2 buf;
- std::locale loc(__gnu_test::try_named_locale("en_US"));
+ std::locale loc(std::locale("en_US"));
buf.pubimbue(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
testbuf ob;
VERIFY( ob.getloc() == loc );
- locale::global(__gnu_test::try_named_locale("en_US"));
+ locale::global(locale("en_US"));
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);
VERIFY( ob.getloc() == loc_de );
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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
-// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
Buf2 buf;
- std::locale loc(__gnu_test::try_named_locale("en_US"));
+ std::locale loc(std::locale("en_US"));
buf.pubimbue(loc);
+// { dg-require-namedlocale "" }
+
// 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.
//
// This file is part of the GNU ISO C++ Library. This library is free
testbuf ob;
VERIFY( ob.getloc() == loc );
- locale::global(__gnu_test::try_named_locale("en_US"));
+ locale::global(locale("en_US"));
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);
VERIFY( ob.getloc() == loc_de );
VERIFY( ret == loc );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
std::stringbuf ob;
VERIFY( ob.getloc() == loc );
- locale::global(__gnu_test::try_named_locale("en_US"));
+ locale::global(locale("en_US"));
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);
VERIFY( ob.getloc() == loc_de );
VERIFY( ret == loc );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
std::wstringbuf ob;
VERIFY( ob.getloc() == loc );
- locale::global(__gnu_test::try_named_locale("en_US"));
+ locale::global(locale("en_US"));
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);
VERIFY( ob.getloc() == loc_de );
VERIFY( ret == loc );
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
wcin.imbue(loc);
wcout.imbue(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
wcin.imbue(loc);
wcout.imbue(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
std::ios_base::sync_with_stdio(false);
wcout.imbue(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
bool test __attribute__((unused)) = true;
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);
std::ios_base::sync_with_stdio(false);
wcin.imbue(loc);
+// { dg-require-namedlocale "" }
+
// 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
// software; you can redistribute it and/or modify it under the
putc(static_cast<unsigned char>(i), 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
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
// software; you can redistribute it and/or modify it under the
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);
wcin.imbue(loc);
# 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
# it under the terms of the GNU General Public License as published by
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
-# 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
# it under the terms of the GNU General Public License as published by
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
+}
bool test = true;
// Set the global locale.
- locale loc_name = try_named_locale(name);
+ locale loc_name = locale(name);
locale orig = locale::global(loc_name);
const char* res = setlocale(LC_ALL, name);
#ifdef _GLIBCXX_HAVE_SETENV
// Set the global locale.
- locale loc_name = try_named_locale(name);
+ locale loc_name = locale(name);
locale orig = locale::global(loc_name);
// Set environment variable env to value in name.
#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;
unsigned int copy_constructor::count_ = 0;
unsigned int copy_constructor::throw_on_ = 0;
void
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.
struct counter
{