summaryrefslogtreecommitdiff
path: root/lisp/dnd.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/dnd.el')
-rw-r--r--lisp/dnd.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/dnd.el b/lisp/dnd.el
index 830177709cf..3be1402f9e5 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-Fa-f0-9][A-Fa-f0-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 t t))
(let* ((decoded-f (decode-coding-string
f