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: Re: How to see the raw line endings in a file? Date: Sun, 31 Mar 2019 21:09:52 +0200 Message-ID: <86o95qhncv.fsf@dod.no> References: <865zrzhtya.fsf@dod.no> <83r2angdxf.fsf@gnu.org> <86wokfgd8e.fsf@dod.no> <83o95rgcq0.fsf@gnu.org> <86sgv2hnws.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="113185"; 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 21:10:13 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 1hAfqO-000TLZ-TR for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Mar 2019 21:10:13 +0200 Original-Received: from localhost ([127.0.0.1]:57821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAfqN-0000ZB-PT for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Mar 2019 15:10:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAfq9-0000Z2-EK for help-gnu-emacs@gnu.org; Sun, 31 Mar 2019 15:09:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAfq8-0000eZ-K8 for help-gnu-emacs@gnu.org; Sun, 31 Mar 2019 15:09:57 -0400 Original-Received: from cadalora.default.sbang.uk0.bigv.io ([2001:41c9:1:424::90]:54122 helo=cadalora.bang.priv.no) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAfq8-0000eN-D5 for help-gnu-emacs@gnu.org; Sun, 31 Mar 2019 15:09:56 -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 C964ECD421 for ; Sun, 31 Mar 2019 20:09:52 +0100 (BST) In-Reply-To: <86sgv2hnws.fsf@dod.no> (Steinar Bang's message of "Sun, 31 Mar 2019 20:57:55 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:41c9:1:424::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:119803 Archived-At: >>>>> Steinar Bang : >>>>> Eli Zaretskii : >> In general, when a file has mixed EOLs, what will show in the mode >> line and what in the buffer is determined by sheer luck, because >> Emacs examines only a small portion of the file to determine the EOL >> format, and depending on where you have CRLF and where just LF you >> can end up with either "DOS" or ^M characters. > Hm... so, if the is not detected as "DOS" and I mainly look at the > start of the file, then it looks like a unix file, but could have an > CR further down...? > Ok, thanks for the info. I will investigate further and report back. Hm... looks like existing cr's are not the cause, I grepped the source and this is all that was found: sb@lorenzo:~/workspaces/ws03/authservice$ grep -r $'\r' * | grep -v node_modules | grep -v target Binary file authservice.web.security/src/main/resources/web/favicon.ico matches Binary file authservice.web.users.frontend/src/main/frontend/public/favicon.ico matches sb@lorenzo:~/workspaces/ws03/authservice$ (the node_modules and target directories I'm excluding, contains downloaded files and/or files created by the maven build process) Thanks for your help!