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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5533 in the body.
You can then email your comments to 5533 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5533; Package emacs. (Fri, 05 Feb 2010 23:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Geoff Gole <geoffgole <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 05 Feb 2010 23:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Geoff Gole <geoffgole <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 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





Message #6 received at 5533-quiet <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 5533-quiet <at> debbugs.gnu.org
Subject: Re: bug#5533
Date: Wed, 17 Feb 2010 03:43:40 -0500
See http://lists.gnu.org/archive/html/emacs-devel/2010-02/msg00340.html




bug closed, send any further explanations to Geoff Gole <geoffgole <at> gmail.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Thu, 01 Jul 2010 00:20:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 29 Jul 2010 11:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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