Hello, Attached a new patch, with some tests and updated changelog. Eli Zaretskii writes: > Ping! Sebastián, would you like to submit an updated patch which > addresses my comments? > >> > @@ -210,6 +215,13 @@ url-generic-parse-url >> > >> > (if (and host (string-match "%[0-9][0-9]" host)) >> > (setq host (url-unhex-string host))) >> > + >> > + ;; For file:// URIs, if the path "looks like" Windows/DOS, it >> > + ;; makes sense to strip the leading slash (bug#76982) >> > + (when (and (string= "file" scheme) >> > + (string-match "^/[A-Za-z]:[/\\]" file)) >> > + (setq file (substring file 1))) >> > + >> > (url-parse-make-urlobj scheme user pass host port file >> > fragment nil full)))))) >> >> Isn't it cleaner to go one more character forward here: >> >> ;; 3.2. Authority >> (when (looking-at "//") >> (setq full t) >> (forward-char 2) <<<<<<<<<<<<<<<<<<<< >> (setq save-pos (point)) >> (skip-chars-forward "^/?#") >> >> if the conditions for Windows-style absolute file name are fulfilled? The URI could potentially have components before we get to the filename, so the look head for "path starts with" isn't as clean. In this patch I still do that check in the same place as in the original. Thank you, Seb