From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help Subject: How to see the raw line endings in a file? Date: Sun, 31 Mar 2019 18:47:25 +0200 Message-ID: <865zrzhtya.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="70717"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 31 18:47:54 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAdcd-000IGf-5W for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Mar 2019 18:47:51 +0200 Original-Received: from localhost ([127.0.0.1]:43009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAdcc-0007so-3g for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Mar 2019 12:47:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAdcL-0007sU-9J for help-gnu-emacs@gnu.org; Sun, 31 Mar 2019 12:47:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAdcK-00066B-3Z for help-gnu-emacs@gnu.org; Sun, 31 Mar 2019 12:47:33 -0400 Original-Received: from cadalora.default.sbang.uk0.bigv.io ([46.43.15.90]:35814 helo=cadalora.bang.priv.no) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAdcJ-00064C-R3 for help-gnu-emacs@gnu.org; Sun, 31 Mar 2019 12:47:32 -0400 Original-Received: from mccoy (cm-84.212.50.160.getinternet.no [84.212.50.160]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id 1FFD4CD421 for ; Sun, 31 Mar 2019 17:47:26 +0100 (BST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 46.43.15.90 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119793 Archived-At: Is there a way in emacs where I can be sure that I see that the files have line endings of a particular form? Ie. DOS style cr lf or unix-ish style with just lf? I'm normally looking for emacs telling me with a "DOS" in the status line, that a file actually has cr lf line endings. But now I have some files with no "DOS" in the status line where weird stuff is happening: 1. Everytime I do something with the maven-release-plugin on this project, line endings are messed up (most of the lines, but not all, get cr lf) https://github.com/steinarb/authservice 2. When I have googled I haven't found any relevant matches. The only matches have been when trying to run releases on Windows, where one of the suggestions have been "do the release in a GNU/linux VM" 3. However, I do the releases on debian GNU/linux My conclusion from that is that there is something weird with the line endings on my project's pom.xml files. However, if that is the case, then emacs is hiding the issues from me. So I'm looking for a way to track down any line ending issues in a file. Any ideas? Thanks! - Steinar