Skip to content

Commit

Permalink
Fix: query string whose names have multibyte chars
Browse files Browse the repository at this point in the history
fixes: #54
  • Loading branch information
Elilif committed Oct 16, 2023
1 parent f503fdc commit 648a01a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion burly.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit 648a01a

Please sign in to comment.