OSDN Git Service

2005-05-18 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 22_locale / codecvt / length / wchar_t / 7.cc
index 5f35a0f..7bcd0f2 100644 (file)
@@ -1,6 +1,8 @@
+// { 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
@@ -51,7 +53,7 @@ void test07()
   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);