Is there a way to print a platform specific newline (Linux in this case) to the standard output regardless of the platform the program is running on (Windows in this case)?
Same question as this, but I want to write to the standard output instead of writing to a file.
Edit because marked as duplicate: This question and its answers does not contain information about the newline translation effect of changing to binary mode. So the answer to my question is the combination of the aforementioned two questions.