Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glibc extensions no longer supported in std::tm formatter #2811

Closed
euclio opened this issue Mar 15, 2022 · 1 comment
Closed

Glibc extensions no longer supported in std::tm formatter #2811

euclio opened this issue Mar 15, 2022 · 1 comment
Labels

Comments

@euclio
Copy link

euclio commented Mar 15, 2022

In short, this assertion (using the make_hour function from the chrono tests) passes in 8.0.1 but fails in 8.1.0.

EXPECT_EQ("8", fmt::format("{:%-I}", make_hour(8)));

According to git bisect, this regressed in 7911d8d.

Seems like this might be expected breakage given the goal of #2544, but the documentation claims that the code uses the format specifiers from the system's strftime, which is no longer the case.

cc Alexays/Waybar#1447

@vitaut
Copy link
Contributor

vitaut commented Mar 15, 2022

This is indeed expected, updated the docs in 1f3d44b. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants