changeset 90603:d383ea975152

(dnd-get-local-file-name): Give a unibyte string to replace-regexp-in-string as replacement.
author Kenichi Handa <handa@m17n.org>
date Thu, 21 Sep 2006 12:18:21 +0000
parents b5c13d1564a9
children bbb0bc5fd402
files lisp/dnd.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dnd.el	Wed Sep 20 06:04:23 2006 +0000
+++ b/lisp/dnd.el	Thu Sep 21 12:18:21 2006 +0000
@@ -148,7 +148,9 @@
       (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