GNU bug report logs - #5533
Suspicious args-out-of-range in replace-match

Previous Next

Package: emacs;

Reported by: Geoff Gole <geoffgole <at> gmail.com>

Date: Fri, 5 Feb 2010 23:53:02 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: Geoff Gole <geoffgole <at> gmail.com>
To: 5533 <at> debbugs.gnu.org
Subject: bug#5533: Suspicious args-out-of-range in replace-match
Date: Sat, 6 Feb 2010 07:46:40 +0800
When given a replacement string containing multi-byte chars,
replace-match will report an unexpected error. There's no error if the
string is all ASCII.

To reproduce in an emacs -Q:

  RET
  foo
  C-p
  C-s foo RET
  M-: (replace-match "αβψ")

Where the string is not pasted, but typed with the greek input method.
The backtrace:

Debugger entered--Lisp error: (args-out-of-range 65052 65070)
  replace-match("\x03b1\x03b2\x03c8")
  eval((replace-match "\x03b1\x03b2\x03c8"))
  eval-expression((replace-match "\x03b1\x03b2\x03c8") nil)
  call-interactively(eval-expression nil nil)

GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11) of 2009-07-30

locale-coding-system is utf-8-unix, default-enable-multibyte-characters is t





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

Previous Next


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