unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Characters saved mismatch?
@ 2017-05-06 23:27 Angelo Graziosi
  2017-05-07  1:06 ` Paul Eggert
  2017-05-07  8:56 ` Yuri Khan
  0 siblings, 2 replies; 14+ messages in thread
From: Angelo Graziosi @ 2017-05-06 23:27 UTC (permalink / raw)
  To: emacs-devel

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 
the message:

   Wrote ‘c:/msys64/tmp/foo.text’ (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 
DOS style at the end of a line: CR+LF.

Why then it writes that has written 8 characters? It seems it is 
remembering what by default occurs on GNU/Linux (only LF).. Or not?


Ciao,
   Angelo.





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-05-07 14:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-06 23:27 Characters saved mismatch? Angelo Graziosi
2017-05-07  1:06 ` Paul Eggert
2017-05-07  2:53   ` Kaushal Modi
2017-05-07  8:06   ` Angelo Graziosi
2017-05-07  8:52     ` Stephen Berman
2017-05-07  9:02       ` Angelo Graziosi
2017-05-07  8:56 ` Yuri Khan
2017-05-07  9:15   ` Angelo Graziosi
2017-05-07  9:25     ` Yuri Khan
2017-05-07 10:50       ` Angelo Graziosi
2017-05-07 12:41         ` Yuri Khan
2017-05-07 12:46     ` Kaushal Modi
2017-05-07 13:38       ` Angelo Graziosi
2017-05-07 14:07         ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).