GNU bug report logs - #1215
23.0.60; unibyte->multibyte conversion problem (in search-forward and friends)

Previous Next

Package: emacs;

Reported by: "Eduardo Ochs" <eduardoochs <at> gmail.com>

Date: Tue, 21 Oct 2008 16:10:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eduardo Ochs <eduardoochs <at> gmail.com>, 1215 <at> debbugs.gnu.org
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 <at> 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




This bug report was last modified 15 years and 184 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.