Open iperdomo opened 2 years ago
Other projects (bigger) also propose this 🤓 - https://bugs.openjdk.org/browse/JDK-8301971
This includes basically the following steps:
- Tell git that the text files are encoded in UTF-8
- Look through the code base for text files containing non-ASCII characters, and convert them to UTF-8, if they are not already
- Update tooling used in building to recognize the fact that files are now in UTF-8 and treat them accordingly (basically, updating compiler flags).
Context
The source code is using ASCII encoding with CRLF (windows) end of lines. When looking at diff, you find those characters
^M
, e.g.Change
dos2unix
.gitattributes
to do the LF conversion (if nececesary) at git levelThere are changes that require modification in the developer machine.
Some of this IDE settings can be recorded in a Preferences file