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: Re: Characters saved mismatch? Date: Sun, 7 May 2017 12:50:17 +0200 Message-ID: References: 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 1494154242 16537 195.159.176.226 (7 May 2017 10:50:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 May 2017 10:50:42 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 Cc: Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 07 12:50:36 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 1d7Jls-0004A8-Lw for ged-emacs-devel@m.gmane.org; Sun, 07 May 2017 12:50:36 +0200 Original-Received: from localhost ([::1]:54437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7Jly-0006aE-A0 for ged-emacs-devel@m.gmane.org; Sun, 07 May 2017 06:50:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7Jls-0006Zu-H5 for emacs-devel@gnu.org; Sun, 07 May 2017 06:50:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7Jlp-0002eH-EP for emacs-devel@gnu.org; Sun, 07 May 2017 06:50:36 -0400 Original-Received: from smtp203.alice.it ([82.57.200.99]:24143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7Jlp-0002e1-2n for emacs-devel@gnu.org; Sun, 07 May 2017 06:50:33 -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 58FA1D2F1201A6C4; Sun, 7 May 2017 12:50:29 +0200 In-Reply-To: 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:214658 Archived-At: Il 07/05/2017 11:25, Yuri Khan ha scritto: > On Sun, May 7, 2017 at 4:15 PM, Angelo Graziosi > wrote: >=20 >> Then, where does "Wrote =E2=80=98c:/msys64/tmp/foo.text=E2=80=99 (8 ch= aracters)" came from, >> on Windows? >=20 > A line separator counts as a single character. In the utf-8-dos > encoding, it is encoded as two bytes. You are just repeating what I write... >=20 > You=E2=80=99re not going to suggest that spaces between words shouldn=E2= =80=99t count > as characters, or are you? Where I wrote about spaces? BTW, why spaces should not count? Why Emacs has the command 'M-x=20 delete-trailing-whitespace'? or the hook (add-hook 'before-save-hook 'delete-trailing-whitespace) ? Try this in a empty buffer and then save: foo SPC SPC bar RET both in DOS and in UNIX style (utf-8-dos, utf-8-unix), and then count...