Part of the fix for gh-223. If a filename can't be decoded in the current encoding, Python escapes the undecodable bytes as unpaired surrogates, which JS doesn't like building a URL from. This doesn't make the undecodable filename openable, but it stops it from breaking the listing of other files. The real fix is to set up the locale encoding correctly so that the filenames can be decoded.
parent
c03a564655
commit
f2c5e6ba98
Loading…
Reference in new issue