]> git.eshelyaron.com Git - emacs.git/commitdiff
(dnd-get-local-file-name): Decode both upper and lower
authorJason Rumney <jasonr@gnu.org>
Wed, 11 Apr 2007 23:42:03 +0000 (23:42 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 11 Apr 2007 23:42:03 +0000 (23:42 +0000)
case hex. Do not try to decode non-hex letters.

lisp/dnd.el

index 2b523476a4f071484436bdfcb1912cac9faa430d..df081539cf0f0072f19a671a3ae96316677062e7 100644 (file)
@@ -146,7 +146,7 @@ Return nil if URI is not a local file."
                  (substring uri (match-end 0))))))
     (when (and f must-exist)
       (setq f (replace-regexp-in-string
-              "%[A-Z0-9][A-Z0-9]"
+              "%[A-Fa-f0-9][A-Fa-f0-9]"
               (lambda (arg)
                 (format "%c" (string-to-number (substring arg 1) 16)))
               f nil t))