-
Notifications
You must be signed in to change notification settings - Fork 239
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
Issues with mingw-w64 gcc 10.2.0 on windows 10 #76
Comments
… replaced #pragma once with #ifndef-define pairs
Can you describe the issue that was encountered? |
It seems that
It is called in the return statement of With Terminus it works as expected, but there is another issue with 3-byte emojis using windows terminal which reproduces both on powershell profile and on wsl. This might be the fault of Windows Terminal though: All emojis up to U+329x seem to exibit this behaviour (extra newlines), while emojis from U+1F00x seem to break on Windows without the mentioned fix (I picked some emojis randomly from this wikipedia article). |
Hey, first of all, awesome work! 😃
I ran into some issues when building and running the demo and I would like to share my workarounds.
First error (among many others caused by the missing header)
In
indicators/termcolor.hpp
, some Windows-specific headers are not included. I changed lines 36-44 (moved anendif
) to this:The second issue encountered was the
from_bytes
conversion in functionstd::wstring utf8_decode(const std::string &str)
fromindicators/display_width.hpp
. I replaced it with the function from this answer. Though I'm not sure if this second workaround is portable.Second issue appears when using an emoji as lead in the nested progress bar example
Also posting it here if the stackoverflow answer gets deleted
An
#include <vector>
would also be necessary for the above workaround.My current environment is the following:
indicators
latest commit (af7c004 as of 11 november 2020)The text was updated successfully, but these errors were encountered: