Skip to main content
Topic: [patch] simutrans understands translation files with windows style line endings (Read 2357 times) previous topic - next topic

[patch] simutrans understands translation files with windows style line endings

Hi,

maybe other developers under windows where caught in the same trap I found myself in after downloading translation files from a repository.

Okay in my case it was GitHub, but as far as I remember, SVN also wants to arbitrate between the different line ending systems and puts the \r into the files. And even if you turned it off, your editor might still want to add them.

Therefore I taught the translator to ignore \r before \n, if present: translator-accepts-crlf-lineends-2547.patch
The journey is the reward!

 

Re: [patch] simutrans understands translation files with windows style line endings

Reply #1
SVN should not do this. At least the simutrans SVN was tuned to avoid it. And SF also do not touch it. Maybe Tortoise has a bug? Also what to do on MAC, where \n is the onle line feed (in principle?)

Re: [patch] simutrans understands translation files with windows style line endings

Reply #2
Ok, something like this finally included.