From 648a01a602159a24632193529d64c6a9e73c3ad1 Mon Sep 17 00:00:00 2001 From: eli Date: Mon, 16 Oct 2023 21:36:17 +0800 Subject: [PATCH] Fix: query string whose names have multibyte chars fixes: #54 --- burly.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/burly.el b/burly.el index 198c79a..5a707d9 100644 --- a/burly.el +++ b/burly.el @@ -290,7 +290,9 @@ without buffer-local bindings in the current buffer are ignored." (defun burly--file-url-buffer (urlobj) "Return buffer for \"emacs+burly+file:\" URLOBJ." (pcase-let* ((`(,path . ,query-string) (url-path-and-query urlobj)) - (query (url-parse-query-string query-string)) + (query (url-parse-query-string (decode-coding-string + (url-unhex-string query-string) + 'utf-8-unix))) (buffer (find-file-noselect path)) (major-mode (buffer-local-value 'major-mode buffer)) (follow-fn (map-nested-elt burly-major-mode-alist (list major-mode 'follow-url-fn))))