line-endings Questions

3

Solved

I realize that the csv library in Python always generates DOS end-of-line characters. Even if I use the 'wb' mode, even if I use Linux. import csv f = open('output.txt', 'wb'); writer = csv.write...
Rockhampton asked 23/3, 2012 at 19:53

5

I'm using SourceTree for easy code reviewing before committing. Within SourceTree I often stage and commit only part of the lines which I changed in a document. A couple days ago I received a piec...
Humdrum asked 10/9, 2015 at 16:27

3

Can somebody explain what is the difference between settings: core.autocrlf = true core.eol = native and core.autocrlf = input When we use both cases?
Ambitendency asked 22/1, 2018 at 10:22

5

Visual Studio will detect inconsistent line endings when opening a file and there is an option to fix it for that specific file. However, if I want to fix line endings for all files in a solution, ...
Chamomile asked 15/2, 2012 at 14:0

13

Solved

I use Windows 10 Home and I usually use Visual Studio Code (VS Code) to edit Linux Bash scripts as well as PHP and JavaScript. I don't develop anything dedicated for Windows and I wouldn't mind tha...
Safeguard asked 8/2, 2018 at 18:49

13

Solved

I use Windows 10 Home and I usually use Visual Studio Code (VS Code) to edit Linux Bash scripts as well as PHP and JavaScript. I don't develop anything dedicated for Windows and I wouldn't mind tha...
Lakeesha asked 8/2, 2018 at 18:49

2

I have an autosetting for Windows somewhere (CRLF) which is really annoying, is there a way to change this to Unix?
Companion asked 23/2, 2022 at 16:45

10

Solved

When running a simple PowerShell script from Task Scheduler, I would like to redirect the output to a file. There is a long thread about this very topic here, yet it's not clear if they reached t...
Triacid asked 9/12, 2012 at 3:35

6

I'm working on a project where we have recently started using git. The setup was not perfect from start, so I've set up .gitattributes after people started cloning/working and I'm still making some...
Varuna asked 6/2, 2018 at 12:4

23

Solved

When using eslint in the gulp project i have encountered a problem with error like this Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style and I am using Windows environment for the ru...
Interconnect asked 15/6, 2016 at 4:55

9

How do I make git status ignore line ending differences? Background info: I use randomly Windows and Linux to work on the project. The project is in Dropbox. I found a lot about how do mak...
Panta asked 10/12, 2013 at 13:40

2

I have a Meteor application I'm deploying on EC2 instances using CodeDeploy (local build -> S3 -> CodeDeploy -> EC2). I'm running into an issue I didn't have a week ago: when creating a deployment...
Fideicommissary asked 7/4, 2016 at 14:47

8

Solved

I have cloned a repository that had inconsistend line endings. I have added a .gitattributes that sets the text attribute for the files I want to normalize. Now when I commit changes I get the mess...
Radiocommunication asked 26/3, 2013 at 15:42

38

Solved

Vim shows ^M on every line ending. How do I replace this with a normal line break in a file opened in Vim?
Marji asked 1/5, 2009 at 12:44

3

I've got a repository that stores all of my Vim settings. It uses submodules to pull in plugins with Pathogen (I've looked at other plugin managers, not interested so far). Due to the way MSYSGit h...
Senaidasenalda asked 10/9, 2015 at 15:41

2

My question is similar to Git - unchange line endings in already committed file, though the accepted answer seems to be mostly musings, and not helpful in my situation. I have several fairly large ...
Palila asked 7/1, 2014 at 17:11

1

Solved

I am facing a very weird issue that i can only produce on linux. I really couldnt find anything like it on the internet, but if my searching skills are not good enough, I apologize if this was a re...
Modiolus asked 21/4, 2023 at 14:32

2

Solved

Environment: Windows + PhpStorm Issue: PhpStorm saves file with Windows line endings - and for shell script it's issue so there is need to always convert after copying to server. Question: Is pos...
Hatcher asked 7/11, 2016 at 17:20

9

Solved

Following situation: I'm working on a Mac running OS X and recently joined a project whose members so far all use Windows. One of my first tasks was to set up the codebase in a Git repository, so ...
Undirected asked 15/8, 2011 at 17:15

12

Solved

I'm trying to use something in bash to show me the line endings in a file printed rather than interpreted. The file is a dump from SSIS/SQL Server being read in by a Linux machine for processing. ...
Mirisola asked 25/8, 2010 at 20:36

2

Solved

I'm on Windows and have systemwide core.autocrlf=true. For a specific repository, I've overridden it locally to false. But that didn't convert line endings in checked-out files. How do I do that?...
Barbitone asked 2/12, 2018 at 14:59

22

Solved

When I run "svn propedit svn:ignore ." at the root of my svn repository, I get this error: svn: Inconsistent line ending style I have tried to run this script: http://blog.eflow.org/archives/130 ...
Duelist asked 27/5, 2009 at 18:51

2

Solved

I am working under ubuntu on a python3.4 script where I take in parameter a file (encoded to UTF-8), generated under Windows. I have to go through the file line by line (separated by \r\n) knowing ...
Cervantes asked 27/4, 2016 at 13:49

10

Solved

As we all know, the linebreaks (new line) used in Windows are usually carriage returns (CR) followed by a line feed (LF) i.e. (CRLF) whereas, Linux and Unix use a simple line feed (LF) Now, in my ...
Lakesha asked 24/8, 2016 at 4:29

5

I've seen answers to the questions, but those answers are not from a windows perspective from what I can tell. Windows uses CR LF, Unix uses LF, Mac uses LF and classic mac uses something else. I ...
Seville asked 27/8, 2015 at 17:23

© 2022 - 2025 — McMap. All rights reserved.