diff --git a/linkcheck/checker/fileurl.py b/linkcheck/checker/fileurl.py index 76bb4462..9984d866 100644 --- a/linkcheck/checker/fileurl.py +++ b/linkcheck/checker/fileurl.py @@ -83,7 +83,7 @@ def get_os_filename (path): """Return filesystem path for given URL path.""" if os.name == 'nt': path = prepare_urlpath_for_nt(path) - res = urlrequest.url2pathname(fileutil.pathencode(path)) + res = urlrequest.url2pathname(urlutil.decode_for_unquote(fileutil.pathencode(path))) if os.name == 'nt' and res.endswith(':') and len(res) == 2: # Work around http://bugs.python.org/issue11474 res += os.sep