Commit 49870251 authored by owsla's avatar owsla

We should FatalError at the point where the malformed UTF-8 character is

first encountered, instead of catching it and then letting it cause more
trouble down the road.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@858 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 3cc5e18e
......@@ -227,12 +227,13 @@ class FSAbilities:
except (IOError, OSError):
# Broken CIFS setups will sometimes create UTF-8 files
# and even stat them, but not let us perform file operations
# on them. Test file will be deleted via shutil.rmtree()
# when subdir is deleted. UTF-8 characters not in the
# on them. Test file cannot be deleted. UTF-8 chars not in the
# underlying codepage get translated to '?'
self.extended_filenames = 0
else:
self.extended_filenames = 1
log.Log.FatalError("Could not delete extended filenames test "
"file. If you are using a CIFS share, please"
" see the FAQ entry about characters being "
"transformed to a '?'")
self.extended_filenames = 1
def set_win_reserved_filenames(self, subdir):
"""Set self.win_reserved_filenames by trying to write a path"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment