GNU bug report logs - #9514
24.0.50; eval + format weirdness

Previous Next

Package: emacs;

Reported by: Wolfgang Jenkner <wjenkner <at> inode.at>

Date: Thu, 15 Sep 2011 14:17:02 UTC

Severity: normal

Found in version 24.0.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Wolfgang Jenkner <wjenkner <at> inode.at>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 9514 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu
Subject: bug#9514: 24.0.50; eval + format weirdness
Date: Thu, 15 Sep 2011 19:24:57 +0200
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Except that this has nothing to do with eval.

Nor with most anything else in my example...

So a better bug report would have been

Subject: format barfs on certain strings

For example,

(format "%%é")

evaluates to garbage.

However, the paradoxical thing was rather

(let* ((string1 "%%b")
       (string2 (with-temp-buffer (insert string1) (buffer-string))))
  (list (string-equal string1 string2)
	(format string1)
	(format string2)))

=> (t "%b" "%bb")

as it wouldn't have easily occurred to me that string1 and string2 can
have different representations on the C level, which format treats
differently (though this shouldn't show ;-)

Wolfgang





This bug report was last modified 13 years and 310 days ago.

Previous Next


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