Subject: bug#1215: 23.0.60; unibyte->multibyte conversion problem (in search-forward and friends)

From: Juanma Barranquero <[email-masked]>
Date: Fri, 16 Jan 2009 01:19:50 +0100

On Wed, Oct 22, 2008 at 15:51, Stefan Monnier <[email-masked]> wrote:

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

(with-temp-file "/temp/guillemets.txt"
  (set-buffer-multibyte nil)
  (setq buffer-file-coding-system 'raw-text-unix)
  (insert ?« "Test" ?» ?\n))

=>

0000 0000 ab 54 65 73 74 bb 0a                              ½Test╗.

    Juanma