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

Terminated after throwing 'fmt::v7::system_error' #2344

Closed
sunmy2019 opened this issue Jun 7, 2021 · 2 comments
Closed

Terminated after throwing 'fmt::v7::system_error' #2344

sunmy2019 opened this issue Jun 7, 2021 · 2 comments

Comments

@sunmy2019
Copy link
Contributor

I am writing codes for #2319 . During testing I found that:
Mixed using of "char" and "wchar" would cause this bug.

See https://godbolt.org/z/fWx84x8cv

This issue starts at release 6.0.0.

#include <fmt/format.h>

int main () {
    fmt::print("{}",42);
    fmt::print(L"{}",42);
}

I searched this error in issues, nothing found. I post it here. I don't know if it's a feature or a bug, or a known issue.

@sunmy2019
Copy link
Contributor Author

sunmy2019 commented Jun 7, 2021

This looks like a feature. Closed now.

@vitaut
Copy link
Contributor

vitaut commented Jun 7, 2021

This is a stdio, not {fmt} problem. I wouldn't recommend using wchar_t with I/O at all.

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

No branches or pull requests

2 participants