Skip to content

FMT_STATIC_THOUSANDS_SEPARATOR broken in 10.0.0 #3835

Description

@vuvova

It seems that FMT_STATIC_THOUSANDS_SEPARATOR no longer works in 10.0.0. The following test succeeds in 8.0.1 but fails in 10.0.0:

#define FMT_STATIC_THOUSANDS_SEPARATOR ','
#define FMT_HEADER_ONLY 1
#include <fmt/format-inl.h>
int main() {
  int answer= 4321;
  fmt::format_args::format_arg arg=
    fmt::detail::make_arg<fmt::format_context>(answer);
  return fmt::vformat("{:L}", fmt::format_args(&arg, 1)).compare("4,321");
}

References: https://jira.mariadb.org/browse/MDEV-32815

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions