Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » I have problems with UNIX vs DOS line endings.
I have problems with UNIX vs DOS line endings. [message #22949] |
Wed, 02 September 2009 09:04  |
mr_ped
Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
For some months I figured out that line endings do change according to where I edit the text file, if I edit in Kubuntu, I get the file converted wholly to unix-like endlines, if I edit it later in WinXP, I get it converted back to DOS-like endlines.
While this doesn't pose any problem to the file usage, it confuses KSVN (SVN GUI I use in Kubuntu). I would prefer TheIDE to read the newline type from opened file, and stick to it (unless it has mixed line-endings, then it's IMHO fine to automatically convert it to current native one.
It's just very minor annoyance, because I can use unix2dos and dos2unix to convert it back, but still having this "fixed" would save me couple of seconds daily.
|
|
|
|
|
Re: I have problems with UNIX vs DOS line endings. [message #22953 is a reply to message #22952] |
Wed, 02 September 2009 14:23  |
masu
Messages: 378 Registered: February 2006
|
Senior Member |
|
|
Hi,
SVN itself does not know about the meaning of line endings, but of course it cares about file differences (which it should I suppose).
I also have the same problem as Ped when working with version control. If I modify a checked out file that has DOS line endings in Unix with TheIDE all line endings are converted to Unix line endings. As a consequence when I make a diff of my modified version and the original one, all lines are marked modified which is not practical since I only want to see (and also check in my modifications).
Matthias
|
|
|
Goto Forum:
Current Time: Sun May 11 17:30:09 CEST 2025
Total time taken to generate the page: 0.04268 seconds
|