Line-ending signifies end of line. Depending on operating system line-endings are different.
Questions tagged [line-endings]
516 questions
0
votes
1 answer
SVN - Cross-platform Linux/Windows projects - Visual Studio always messing up files
I have a couple of libraries that are built for Linux and windows. The Linux version builds via a Makefile in the root directory, and the Windows version is a Visual Studio 2010 project that uses the exact same source files. Platform-specific code…

Cloud
- 18,753
- 15
- 79
- 153
0
votes
1 answer
svn:eol-style on repository level
I'm trying to set up svn server (1.8.8) with enable-auto-props. I've read the 1.8 documentation but maybe I'm missing something. The server config file is like that:
[miscellany]
enable-auto-props = yes
[auto-props]
*.c =…

oTolev
- 231
- 1
- 2
- 10
0
votes
1 answer
Generated Code in VS2013 line endings handled differently in same file
I have read most, if not all, of the related questions on the site, but I don't see the same problem described, so...
I am generating some webforms code (both .aspx and .aspx.cs files), however my problem seems to be confined to the .aspx files only…

Lynn Lahman
- 11
- 2
0
votes
0 answers
How to echo line endings in php?
I did not ask about How to replace \r & \n with
?, I need to know how to dump line endings. I have a script that handles post data incoming from users that fill a form. How can I dump line endings if the data may contain different types of ones…
?, I need to know how to dump line endings. I have a script that handles post data incoming from users that fill a form. How can I dump line endings if the data may contain different types of ones…

El cero
- 607
- 5
- 13
0
votes
1 answer
Extracting .mp3 files and names from an .m3u file
I'm working on a website that lists music for a user to chose from that based on data in a json file. The file contains information like the album name, artist, year it was released, the number of tracks etc. and, where I'm struggling, an .m3u file…

OTill
- 1
- 1
0
votes
2 answers
Have Vagrant+Chef run bail out if template files have been checked out with CRLF line endings
I keep getting bit by an annoying gotcha that happens when Windows developers check out cookbooks from my Git repo with Git's autocrlf set to true. When they run vagrant up to bring up a Linux VM, the cookbook files are mapped into the VM with CRLF…

Michael Kropat
- 14,557
- 12
- 70
- 91
0
votes
1 answer
How can I set line ending setting for perforce workspace using p4 from command line?
I cannot find documentation of how exactly to set the line ending settings for a workspace using p4 from the command line. I know how to do this from p4v but I need to do it programmatically in a script and so using p4v isn't an option.
I know I…

Brian
- 3,264
- 4
- 30
- 43
0
votes
0 answers
Shell script: Command not found
I'm scripting a file which will change the permissions of a file once it is run. I keep getting these errors on the Cygwin terminal:
$ chmx.bash
/home/user/scripts/chmx.bash: line 2: $'\r': command not found
/home/user/scripts/chmx.bash: line 4:…
user4814802
0
votes
2 answers
Win32/C: Convert line endings to DOS/Windows format
I've the following C function in a Windows API project that reads a file and based on the line endings (UNIX, MAC, DOS) it replaces the line endings with the right line-endings for Windows (\r\n):
// Standard C header needed for string…

Govind Parmar
- 20,656
- 7
- 53
- 85
0
votes
0 answers
Line Normalizing causes my site to break
I've got a rather strange problem. This morning when I started working on my project I got a PopUp in Visual Studios:
The line endings in the following file are not consistent. Do you want to normalize the line endings?
I clicked Yes......and…

Mufaddal
- 558
- 5
- 24
0
votes
1 answer
Portability Bug between Windows and Unix of \r\n (CRLF) and \n (LF)?
When i wrote a code for Shell Script in windows platform
#!/bin/bash
a=20
b=10
sum=`expr $a + $b`
echo $sum
but tried to execute it on UNIX platform it gave me error '20\r': command not found because Windows file ends with /r/n while UNIX file…

Ankur Anand
- 3,873
- 2
- 23
- 44
0
votes
1 answer
Why is GitHub creating nonsense commits, here?
I cloned a friend's project. I haven't done any modifications and I already have tons uncommitted changes for all project files! For each file, it's as if I simply cut and paste all the contents, but I never did this, and even if I did it, there are…

sylvain1264
- 855
- 2
- 8
- 23
0
votes
1 answer
Only the last line of a multiline file / string is printed
I searched a bit on Stack Overflow and stumbled on different answers but nothing fitted for my situation...
I got a map.txt file like this:
+----------------------+
| |
| …

Alex Held
- 123
- 11
0
votes
1 answer
git stash changes line endings
I'm working with git 1.9.3 on OS X 10.10.2 (Yosemite) accessing a repository that's on a Linux machine. It seems that when I stash my local changes and pop the stash back, files change from Unix to DOS line endings:
[Ken-MacBook:~] % file .emacs…

Ken Williams
- 22,756
- 10
- 85
- 147
0
votes
1 answer
Why do we use 10,13 in message DB 10,13, 'foo $'?
Here is the Code written on assembly language for 8086 microprocessor.This code find if the number is positive or negative. I understand the code but can not understand the 4th and 5th line of that code.
;FIND A NUMBER THAT WAS POSITIVE OR…

Md Sabbir Alam
- 4,937
- 3
- 15
- 30