changeset 77132:4d39a7fbbc3c

(dnd-get-local-file-name): Decode both upper and lower case hex. Do not try to decode non-hex letters.
author Jason Rumney <jasonr@gnu.org>
date Wed, 11 Apr 2007 23:42:03 +0000
parents 3136c1150453
children 8e4480edb71e
files lisp/dnd.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dnd.el	Wed Apr 11 23:41:35 2007 +0000
+++ b/lisp/dnd.el	Wed Apr 11 23:42:03 2007 +0000
@@ -146,7 +146,7 @@
 		  (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))