[cfe-commits] [libcxx] r140262 - in /libcxx/trunk/test/localization: locale.categories/category.collate/locale.collate.byname/ locale.categories/category.ctype/locale.codecvt.byname/ locale.categories/category.ctype/locale.ctype.byname/ locales/locale/locale.members/ locales/locale/locale.operators/ locales/locale/locale.statics/
David Chisnall
csdavec at swan.ac.uk
Wed Sep 21 10:35:42 PDT 2011
Author: theraven
Date: Wed Sep 21 12:35:42 2011
New Revision: 140262
URL: http://llvm.org/viewvc/llvm-project?rev=140262&view=rev
Log:
More +.UTF-8 fixes.
Modified:
libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/hash.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/types.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.codecvt.byname/ctor_wchar_t.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_1.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_many.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/narrow_many.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_is.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_not.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_1.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_many.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_1.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_many.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/types.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp
libcxx/trunk/test/localization/locales/locale/locale.members/name.pass.cpp
libcxx/trunk/test/localization/locales/locale/locale.operators/eq.pass.cpp
libcxx/trunk/test/localization/locales/locale/locale.statics/global.pass.cpp
Modified: libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp Wed Sep 21 12:35:42 2011
@@ -27,7 +27,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
const std::collate<char>& f = std::use_facet<std::collate<char> >(l);
std::string s2("aaaaaaA");
Modified: libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/hash.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/hash.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/hash.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/hash.pass.cpp Wed Sep 21 12:35:42 2011
@@ -21,7 +21,7 @@
int main()
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
std::string x1("1234");
std::string x2("12345");
Modified: libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp Wed Sep 21 12:35:42 2011
@@ -22,9 +22,9 @@
int main()
{
// Ensure that the default locale is not C. If it is, the second tests will fail.
- setenv("LANG", "en_US", 1);
+ setenv("LANG", "en_US.UTF-8", 1);
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
std::string x("1234");
const std::collate<char>& f = std::use_facet<std::collate<char> >(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/types.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/types.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/types.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.collate/locale.collate.byname/types.pass.cpp Wed Sep 21 12:35:42 2011
@@ -29,7 +29,7 @@
int main()
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
assert(std::has_facet<std::collate_byname<char> >(l));
assert(&std::use_facet<std::collate<char> >(l)
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.codecvt.byname/ctor_wchar_t.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.codecvt.byname/ctor_wchar_t.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.codecvt.byname/ctor_wchar_t.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.codecvt.byname/ctor_wchar_t.pass.cpp Wed Sep 21 12:35:42 2011
@@ -38,12 +38,12 @@
int main()
{
{
- std::locale l(std::locale::classic(), new my_facet("en_US"));
+ std::locale l(std::locale::classic(), new my_facet("en_US.UTF-8"));
assert(my_facet::count == 1);
}
assert(my_facet::count == 0);
{
- my_facet f("en_US", 1);
+ my_facet f("en_US.UTF-8", 1);
assert(my_facet::count == 1);
{
std::locale l(std::locale::classic(), &f);
@@ -53,12 +53,12 @@
}
assert(my_facet::count == 0);
{
- std::locale l(std::locale::classic(), new my_facet(std::string("en_US")));
+ std::locale l(std::locale::classic(), new my_facet(std::string("en_US.UTF-8")));
assert(my_facet::count == 1);
}
assert(my_facet::count == 0);
{
- my_facet f(std::string("en_US"), 1);
+ my_facet f(std::string("en_US.UTF-8"), 1);
assert(my_facet::count == 1);
{
std::locale l(std::locale::classic(), &f);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_1.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_1.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_1.pass.cpp Wed Sep 21 12:35:42 2011
@@ -20,7 +20,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_many.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_many.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_many.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/is_many.pass.cpp Wed Sep 21 12:35:42 2011
@@ -23,7 +23,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/narrow_many.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/narrow_many.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/narrow_many.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/narrow_many.pass.cpp Wed Sep 21 12:35:42 2011
@@ -39,7 +39,7 @@
}
}
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_is.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_is.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_is.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_is.pass.cpp Wed Sep 21 12:35:42 2011
@@ -23,7 +23,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_not.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_not.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_not.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/scan_not.pass.cpp Wed Sep 21 12:35:42 2011
@@ -23,7 +23,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_1.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_1.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_1.pass.cpp Wed Sep 21 12:35:42 2011
@@ -19,7 +19,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
@@ -51,7 +51,7 @@
}
}
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_many.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_many.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_many.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_many.pass.cpp Wed Sep 21 12:35:42 2011
@@ -20,7 +20,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
@@ -54,7 +54,7 @@
}
}
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_1.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_1.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_1.pass.cpp Wed Sep 21 12:35:42 2011
@@ -19,7 +19,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
@@ -51,7 +51,7 @@
}
}
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_many.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_many.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_many.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_many.pass.cpp Wed Sep 21 12:35:42 2011
@@ -20,7 +20,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
@@ -54,7 +54,7 @@
}
}
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/types.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/types.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/types.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/types.pass.cpp Wed Sep 21 12:35:42 2011
@@ -28,7 +28,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
assert(std::has_facet<std::ctype_byname<char> >(l));
assert(&std::use_facet<std::ctype<char> >(l)
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_1.pass.cpp Wed Sep 21 12:35:42 2011
@@ -22,7 +22,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/locale.ctype.byname/widen_many.pass.cpp Wed Sep 21 12:35:42 2011
@@ -23,7 +23,7 @@
int main()
{
{
- std::locale l("en_US");
+ std::locale l("en_US.UTF-8");
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
Modified: libcxx/trunk/test/localization/locales/locale/locale.members/name.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locales/locale/locale.members/name.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locales/locale/locale.members/name.pass.cpp (original)
+++ libcxx/trunk/test/localization/locales/locale/locale.members/name.pass.cpp Wed Sep 21 12:35:42 2011
@@ -21,7 +21,7 @@
assert(loc.name() == "C");
}
{
- std::locale loc("en_US");
- assert(loc.name() == "en_US");
+ std::locale loc("en_US.UTF-8");
+ assert(loc.name() == "en_US.UTF-8");
}
}
Modified: libcxx/trunk/test/localization/locales/locale/locale.operators/eq.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locales/locale/locale.operators/eq.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locales/locale/locale.operators/eq.pass.cpp (original)
+++ libcxx/trunk/test/localization/locales/locale/locale.operators/eq.pass.cpp Wed Sep 21 12:35:42 2011
@@ -18,8 +18,8 @@
{
std::locale cloc;
std::locale copy(cloc);
- std::locale n1("en_US");
- std::locale n2("en_US");
+ std::locale n1("en_US.UTF-8");
+ std::locale n2("en_US.UTF-8");
std::locale noname1 = n1.combine<std::ctype<char> >(cloc);
std::locale nonamec = noname1;
std::locale noname2 = n1.combine<std::ctype<char> >(cloc);
Modified: libcxx/trunk/test/localization/locales/locale/locale.statics/global.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locales/locale/locale.statics/global.pass.cpp?rev=140262&r1=140261&r2=140262&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locales/locale/locale.statics/global.pass.cpp (original)
+++ libcxx/trunk/test/localization/locales/locale/locale.statics/global.pass.cpp Wed Sep 21 12:35:42 2011
@@ -54,8 +54,8 @@
std::locale loc;
assert(loc.name() == "C");
check(loc);
- assert(std::locale::global(std::locale("en_US")) == loc);
+ assert(std::locale::global(std::locale("en_US.UTF-8")) == loc);
std::locale loc2;
check(loc2);
- assert(loc2 == std::locale("en_US"));
+ assert(loc2 == std::locale("en_US.UTF-8"));
}
More information about the cfe-commits
mailing list