system property line.separator, and is not necessarily a single newline character ('\n').
This is the important part - on normal systems that’s \n by default, but on Windows that’s \r\n digraph.
Since both Console.withOut and System.setOut allow to set a custom PrintStream the final result depends on the implementation of non-final PrintStream instance, since PrintStream.println is not a final method.