diff --git a/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_date.pass.cpp b/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_date.pass.cpp --- a/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_date.pass.cpp +++ b/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_date.pass.cpp @@ -14,12 +14,9 @@ // REQUIRES: locale.ru_RU.UTF-8 // REQUIRES: locale.zh_CN.UTF-8 -// GLIBC Expects "10/06/2009" for fr_FR as opposed to "10.06.2009" -// GLIBC also fails on the zh_CN test. +// GLIBC fails on the zh_CN test. // XFAIL: linux -// XFAIL: LIBCXX-WINDOWS-FIXME - // // class time_get_byname @@ -66,7 +63,11 @@ } { const my_facet f(LOCALE_fr_FR_UTF_8, 1); +#if defined(_WIN32) || defined(TEST_HAS_GLIBC) + const char in[] = "10/06/2009"; +#else const char in[] = "10.06.2009"; +#endif err = std::ios_base::goodbit; t = std::tm(); I i = f.get_date(I(in), I(in+sizeof(in)/sizeof(in[0])-1), ios, err, &t); diff --git a/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_date_wide.pass.cpp b/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_date_wide.pass.cpp --- a/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_date_wide.pass.cpp +++ b/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_date_wide.pass.cpp @@ -16,12 +16,9 @@ // REQUIRES: locale.ru_RU.UTF-8 // REQUIRES: locale.zh_CN.UTF-8 -// GLIBC Expects "10/06/2009" for fr_FR as opposed to "10.06.2009" -// GLIBC also fails on the zh_CN test. +// GLIBC fails on the zh_CN test. // XFAIL: linux -// XFAIL: LIBCXX-WINDOWS-FIXME - // // class time_get_byname @@ -68,7 +65,11 @@ } { const my_facet f(LOCALE_fr_FR_UTF_8, 1); +#if defined(_WIN32) || defined(TEST_HAS_GLIBC) + const wchar_t in[] = L"10/06/2009"; +#else const wchar_t in[] = L"10.06.2009"; +#endif err = std::ios_base::goodbit; t = std::tm(); I i = f.get_date(I(in), I(in+sizeof(in)/sizeof(in[0])-1), ios, err, &t);