-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
stdout_sink raises exception in GUI (non-console) Windows App #1828
Comments
IMO. This is the design of the Microsoft Windows operating system. Quote: https://docs.microsoft.com/en-us/windows/console/getstdhandle
Calling |
I tend to fix this since it is not very easy to cope with (e.g when spdlog used through a 3rd party dependency), and indeed it breaks backward compatibility. |
Fixed in 5efccfa |
Regression after fix for Issue #1675 : With this fix, creating a stdout_sink in an GUI (non-console) application now throws an exception, because the call ::_get_osfhandle(::fileno(file)); now fails, whereas the previous version would allow the sink to be created.
So where a GUI app previously would log to the debugging console, it now throws an Exception. This is a regression.
The text was updated successfully, but these errors were encountered: