For files in text mode, translation of '\n' to local line ending is done automatically within libc. On Windows, this is translated to CR+LF. This behavior is correct.
Forcing all platforms to use LF is not the way to go.
If there is a problem with line-endings in git, this must be solved in git, e.g using the text attribute in .gitattributes.
For files in text mode, translation of '\n' to local line ending is done automatically within libc. On Windows, this is translated to CR+LF. This behavior is correct.
Forcing all platforms to use LF is not the way to go.
If there is a problem with line-endings in git, this must be solved in git, e.g using the text attribute in .gitattributes.