0002655: Directories and files with accents characters cause failures in Windows.

svn: r12106
This commit is contained in:
Brian Matherly
2009-02-24 04:41:23 +00:00
parent bc081c401c
commit bff93f186a
8 changed files with 10 additions and 15 deletions

View File

@ -523,8 +523,7 @@ class CheckIntegrity:
self.bad_photo.append(ObjectId)
def fs_ok_clicked(obj):
name = unicode(fs_top.get_filename(),
sys.getfilesystemencoding())
name = Utils.get_unicode_path(fs_top.get_filename())
if os.path.isfile(name):
obj = self.db.get_object_from_handle(ObjectId)
obj.set_path(name)