News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

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

Started by Bernd Gabriel, June 25, 2009, 08:29:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bernd Gabriel

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!

prissi

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?)

prissi