emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Characters saved mismatch?


From: Angelo Graziosi
Subject: Re: Characters saved mismatch?
Date: Sun, 7 May 2017 12:50:17 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0



Il 07/05/2017 11:25, Yuri Khan ha scritto:
On Sun, May 7, 2017 at 4:15 PM, Angelo Graziosi
<address@hidden> wrote:

Then, where does "Wrote ‘c:/msys64/tmp/foo.text’ (8 characters)" came from,
on Windows?

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...


You’re not going to suggest that spaces between words shouldn’t count
as characters, or are you?

Where I wrote about spaces?

BTW, why spaces should not count? Why Emacs has the command 'M-x 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...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]