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