The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Bernd Gabriel on June 25, 2009, 08:29:01 pm

Title: [patch] simutrans understands translation files with windows style line endings
Post by: Bernd Gabriel on June 25, 2009, 08:29:01 pm
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 (http://simutrans-germany.com/~patches/upload/translator-accepts-crlf-lineends-2547.patch)
Title: Re: [patch] simutrans understands translation files with windows style line endings
Post by: prissi on June 25, 2009, 08:38:02 pm
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?)
Title: Re: [patch] simutrans understands translation files with windows style line endings
Post by: prissi on October 13, 2009, 08:12:10 pm
Ok, something like this finally included.