/[smecontribs]/rpms/translate-toolkit/contribs8/translate-toolkit-1.5.3-bug1372_filesystem_encoding.patch
ViewVC logotype

Contents of /rpms/translate-toolkit/contribs8/translate-toolkit-1.5.3-bug1372_filesystem_encoding.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Feb 24 18:18:37 2010 UTC (14 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: translate-toolkit-1_5_3-2_1_el5_sme, translate-toolkit-1_5_3-2_el5_sme, translate-toolkit-1_5_3-2_0_el5_sme, HEAD
Initial import

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()

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed