all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 1215@emacsbugs.donarmstrong.com
Subject: bug#1215: 23.0.60; unibyte->multibyte conversion problem (in
Date: Thu, 15 Jan 2009 21:47:04 -0500	[thread overview]
Message-ID: <jwveiz4ug6f.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <f7ccd24b0901151619n67e15abrfc6f9186d64da18a@mail.gmail.com> (Juanma Barranquero's message of "Fri, 16 Jan 2009 01:19:50 +0100")

>> There's a bug here, indeed: Emacs should refuse to save such a file,
>> because raw-text-unix (to which I prefer to refer as `binary') cannot
>> encode « and ».
> Why not? « is U+00AB and » is U+00BB.

Neither of which is a byte.  The byte 0xAB is the Emacs character
#x3fffab, as shown by (unibyte-char-to-multibyte #xab).

If you save that file and read it back in, you'll see that its content
has changed.  `save-buffer' should not silently save if it will
lose information.


        Stefan






  reply	other threads:[~2009-01-16  2:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21 16:00 bug#1215: 23.0.60; unibyte->multibyte conversion problem (in search-forward and friends) Eduardo Ochs
2008-10-22 14:51 ` Stefan Monnier
2009-01-16  0:19   ` Juanma Barranquero
2009-01-16  2:47     ` Stefan Monnier [this message]
2009-01-16  2:59       ` bug#1215: 23.0.60; unibyte->multibyte conversion problem (in Juanma Barranquero
2009-01-16  3:37         ` Stefan Monnier
2009-01-16 11:08           ` Juanma Barranquero
2009-01-16 20:56             ` Stefan Monnier
2009-01-17 10:10               ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=jwveiz4ug6f.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=1215@emacsbugs.donarmstrong.com \
    --cc=lekktu@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.