summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/dnd.el4
1 files changed, 3 insertions, 1 deletions
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