Skip to content

Localized formatting is always decimal #3693

Description

@mamikonyan

Localization doesn't seem to obey the 'type' specifier:

int main() {
    const auto x = 123456789;
    std::clog << std::format("{:LX}", x) << ' ' << fmt::format("{:LX}", x);
}

yields:
75BCD15 123456789
This is using tip of trunk {fmt} and GCC 13.1.0.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions