From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Characters saved mismatch? Date: Sun, 7 May 2017 01:27:42 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: Quoted-Printable X-Trace: blaine.gmane.org 1494113277 13520 195.159.176.226 (6 May 2017 23:27:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 May 2017 23:27:57 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 07 01:27:54 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d797A-0003ST-89 for ged-emacs-devel@m.gmane.org; Sun, 07 May 2017 01:27:52 +0200 Original-Received: from localhost ([::1]:53008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d797F-0004ai-UA for ged-emacs-devel@m.gmane.org; Sat, 06 May 2017 19:27:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d797A-0004ab-F5 for emacs-devel@gnu.org; Sat, 06 May 2017 19:27:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7975-0007KR-7H for emacs-devel@gnu.org; Sat, 06 May 2017 19:27:52 -0400 Original-Received: from smtp203.alice.it ([82.57.200.99]:37926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7974-0007KL-Rh for emacs-devel@gnu.org; Sat, 06 May 2017 19:27:47 -0400 Original-Received: from [192.168.1.102] (79.35.224.245) by smtp203.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 58FA1D2F11629D07 for emacs-devel@gnu.org; Sun, 7 May 2017 01:27:43 +0200 Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.99 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214640 Archived-At: I notice this in my Emacs master build on MSYS2/MinGW64: emacs -Q & C-x C-f foo.text RET Now in foo.text type foo RET bar RET and then save: C-x C-s. In the mini-buffer (and in Messages) there is=20 the message: Wrote =E2=80=98c:/msys64/tmp/foo.text=E2=80=99 (8 characters) but ls -l foo.text -rw-r--r-- 1 bingo bongo 10 7 mag 01.07 foo.text 10 bytes! This is right because on Windows, by default, Emacs uses the=20 DOS style at the end of a line: CR+LF. Why then it writes that has written 8 characters? It seems it is=20 remembering what by default occurs on GNU/Linux (only LF).. Or not? Ciao, Angelo.