bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#1215: 23.0.60; unibyte->multibyte conversion problem (in search-forw


From: Juanma Barranquero
Subject: bug#1215: 23.0.60; unibyte->multibyte conversion problem (in search-forward and friends)
Date: Fri, 16 Jan 2009 01:19:50 +0100

On Wed, Oct 22, 2008 at 15:51, Stefan Monnier <monnier@iro.umontreal.ca> 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






reply via email to

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