unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Characters saved mismatch?
Date: Sun, 07 May 2017 10:07:39 -0400	[thread overview]
Message-ID: <jwvmvaou5zr.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: df6b1ab4-dadb-6c23-d918-2d92d32fdc89@alice.it

>> As written about emacs sees the newline as just 1 character. 
> But all this is confusing when the end line is utf-8-dos...

What's confusing about it?  The line separator is a character, just like
the non-breaking space is a character.  The coding system then encodes
those as some number of bytes, typically 1 or 2 (e.g. using utf-8-dos,
they will both use up 2 bytes, IIRC, whereas with latin-1-unix they'd
both use up a single byte, and of course you get other combinations
with latin-1-dos and utf-8-unix, and I'll let you check what can happen
with things like iso-2022-7bit).


        Stefan




      reply	other threads:[~2017-05-07 14:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvmvaou5zr.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).