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


Message #35 received at 1215 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: Eduardo Ochs <eduardoochs <at> gmail.com>, 1215 <at> debbugs.gnu.org
Subject: Re: bug#1215: 23.0.60; unibyte->multibyte conversion problem (in
Date: Thu, 15 Jan 2009 22:37:54 -0500
> Sorry, but I don't see that.
>   emacs -Q
> then I evaluate this:
>   (with-temp-file "/temp/guillemets.txt"
>     (set-buffer-multibyte nil)
>     (setq buffer-file-coding-system 'raw-text-unix)
>     (insert ?« "Test" ?» ?\n))

You're cheating: remove the (set-buffer-multibyte nil).
Otherwise you're not actually inserting the ?« char but the #xAB
byte instead.


        Stefan




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.