瀏覽代碼

temporal lib: use str not unicode to fix problems with translated messages, see https://trac.osgeo.org/grass/ticket/3392

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71411 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 7 年之前
父節點
當前提交
265aaff21e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/python/temporal/core.py

+ 1 - 0
lib/python/temporal/core.py

@@ -1107,6 +1107,7 @@ class DBConnection(object):
                         detect_types=self.dbmi.PARSE_DECLTYPES | self.dbmi.PARSE_COLNAMES)
                 self.connection.row_factory = self.dbmi.Row
                 self.connection.isolation_level = None
+                self.connection.text_factory = str
                 self.cursor = self.connection.cursor()
                 self.cursor.execute("PRAGMA synchronous = OFF")
                 self.cursor.execute("PRAGMA journal_mode = MEMORY")