unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5533: Suspicious args-out-of-range in replace-match
@ 2010-02-05 23:46 Geoff Gole
  0 siblings, 0 replies; only message in thread
From: Geoff Gole @ 2010-02-05 23:46 UTC (permalink / raw)
  To: 5533

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







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-05 23:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-05 23:46 bug#5533: Suspicious args-out-of-range in replace-match Geoff Gole

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).