-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fix pipe output on windows #852
Conversation
Add .theia/ folder in .gitignore (ide based on vscode)
Fix pipe output on windows for all tool by setting output mode to binary instead of the default mode (text mode)
It compiles on my setup using mingw64 but seem to fail here |
The includes also needs a IMO we should also put this in a setup function in library/tbc/something that can be called rather than copy pasting the same code in each file. |
add pre-processor instruction to fix building with linux
I think we can't put it in a separate file cause the instruction need to be in the main() |
I don't see why it has to, it doesn't say anything about that in the documentation. The two calls to the windows functions just have to be set before we pipe any data Like make a
code and call that function at the beginning of each main instead of having those lines copied in each main. This makes it much cleaner. |
There's already some helper code in I wondered if there was a way of doing this using Qt when stdout is opened, but no - looking at the Qt source, all of their tools have exactly the same hack in them! (Mind the indentation too - it should match the existing code, with four-space indentation and no tabs.) |
ld-process-ac3 don't have the loggin.cpp included, so maybe we should include it ? |
I don't think they need to, they don't make use of Qt so would be preferable to not link to the qt specific stuff in e.g logging.cpp |
Move setmode binary to logging.cpp
it should be good now |
Looks good now I think other than ld-chroma-decoder/encoder can also use the function since it uses logging |
Fix pipe output on Windows for all tool by setting output mode to binary instead of the default mode (text mode)