--- src/trunk/translate/storage/statsdb.py 2010/02/19 16:25:15 13824 +++ src/trunk/translate/storage/statsdb.py 2010/02/22 12:27:48 13825 @@ -360,7 +360,7 @@ store can be a TranslationFile object or a callback that returns one. """ - realpath = os.path.realpath(filename) + realpath = unicode(os.path.realpath(filename), sys.getfilesystemencoding()) self.cur.execute("""SELECT fileid, st_mtime, st_size FROM files WHERE path=?;""", (realpath,)) filerow = self.cur.fetchone()