• Kai Willadsen's avatar
    dirdiff: Fix display of encoding errors when scanning folders (#235) · 924ac31d
    Kai Willadsen authored
    The existing handling was Python 2 era. In the current code, we'll
    always have a `str`-type root for our `os.listdir()` call, so the
    entries will always be `str`s. This patch handles the Python 3 path
    handling situation of getting surrogate escaped paths (in the case of a
    bad file name vs. filesystem encoding) by just checking for a valid
    re-encode and treating any failure as an encoding error.
    924ac31d
Name
Last commit
Last update
bin Loading commit data...
data Loading commit data...
help Loading commit data...
meld Loading commit data...
po Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
COPYING Loading commit data...
MANIFEST.in Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
dev-requirements.txt Loading commit data...
maint Loading commit data...
meld.1 Loading commit data...
meld.doap Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
setup_win32.py Loading commit data...