Skip to content

Tests failing for DMY locales #3346

Description

Roger Orr (@rogerorr) reported to me that some of the STL's tests are failing when Windows 11 is set to an English (United Kingdom) locale with dd/MM/yyyy short date format and dd MMMM yyyy long date format (and Monday as the first day of the week, although that is probably unrelated).

The failing tests were:

  • libcxx std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/date_order.pass.cpp
    • Line 33 says assert(f.date_order() == std::time_base::mdy) so failure is unsurprising.
  • tr1/tests/locale3 is seeing the day and month being swapped:
  • tr1/tests/locale4 has the same problem:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!testRelated to test code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions