From: Kenichi Handa Date: Thu, 21 Sep 2006 12:18:21 +0000 (+0000) Subject: (dnd-get-local-file-name): Give a unibyte string to X-Git-Tag: emacs-pretest-23.0.90~8295^2~747 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=62a714fc453915ae9f7ffe2c718970e0c893851b;p=emacs.git (dnd-get-local-file-name): Give a unibyte string to replace-regexp-in-string as replacement. --- diff --git a/lisp/dnd.el b/lisp/dnd.el index f8cdf9a1239..5e7135ec8d6 100644 --- a/lisp/dnd.el +++ b/lisp/dnd.el @@ -148,7 +148,9 @@ Return nil if URI is not a local file." (setq f (replace-regexp-in-string "%[A-Z0-9][A-Z0-9]" (lambda (arg) - (format "%c" (string-to-number (substring arg 1) 16))) + (let ((str (make-string 1 0))) + (aset str 0 (string-to-number (substring arg 1) 16)) + str)) f nil t)) (let* ((decoded-f (decode-coding-string f