
Issues with line endings in localizations on Windows based servers
TheE opened this issue ยท 3 comments
This issue was encountered in the following environment:
- MyWarp version: 3.0-beta4 (did not happen in 2.6.5)
- MC version: 1.12
- Bukkit implementation of the server: Spigot, but also happens when using CraftBukkit
- OS of the server: Windows 10
- Java version of the server: 1.8.0_131
- OS of the client: Windows 10
- Java version of the client: 1.8.0_131
This seems like an issue with handling of line endings by Java's property resource bundle...
This could be the same issue reported under #61.
This does not appear to be caused by problems within Java's handling of property resource bundles.
Instead, I suspect that this is caused by a weird behavior of MC when encountering Windows native line-endings. The line breaks in the list above are created by calling System.getProperty("line.separator")
which returns \n
on *nix, and \r\n
on Windows. Apparently, MC does not require \r
at all, even when running on Windows.
Seems to be fixed. ๐