]> git.eshelyaron.com Git - emacs.git/commitdiff
(dnd-get-local-file-name): Give a unibyte string to
authorKenichi Handa <handa@m17n.org>
Thu, 21 Sep 2006 12:18:21 +0000 (12:18 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 21 Sep 2006 12:18:21 +0000 (12:18 +0000)
replace-regexp-in-string as replacement.

lisp/dnd.el

index f8cdf9a123935471cbb692e9a9fdab9e9fdb97b1..5e7135ec8d6320ceb29bf9c66b98734571c6b078 100644 (file)
@@ -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