• 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
..
matchers Loading commit data...
ui Loading commit data...
vc Loading commit data...
__init__.py Loading commit data...
build_helpers.py Loading commit data...
conf.py Loading commit data...
const.py Loading commit data...
diffgrid.py Loading commit data...
diffmap.py Loading commit data...
dirdiff.py Loading commit data...
filediff.py Loading commit data...
filemerge.py Loading commit data...
filters.py Loading commit data...
gutterrendererchunk.py Loading commit data...
iohelpers.py Loading commit data...
linkmap.py Loading commit data...
meldapp.py Loading commit data...
meldbuffer.py Loading commit data...
melddoc.py Loading commit data...
meldwindow.py Loading commit data...
misc.py Loading commit data...
newdifftab.py Loading commit data...
patchdialog.py Loading commit data...
preferences.py Loading commit data...
recent.py Loading commit data...
settings.py Loading commit data...
sourceview.py Loading commit data...
task.py Loading commit data...
tree.py Loading commit data...
treehelpers.py Loading commit data...
undo.py Loading commit data...
vcview.py Loading commit data...
windowstate.py Loading commit data...