[open-ils-commits] r13541 - trunk/build/i18n/scripts (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jul 8 22:13:06 EDT 2009


Author: dbs
Date: 2009-07-08 22:13:05 -0400 (Wed, 08 Jul 2009)
New Revision: 13541

Modified:
   trunk/build/i18n/scripts/db-seed-i18n.py
Log:
Reproduced miker's problem building i18n on a clean Debian Lenny system. codecs, to the rescue!


Modified: trunk/build/i18n/scripts/db-seed-i18n.py
===================================================================
--- trunk/build/i18n/scripts/db-seed-i18n.py	2009-07-08 21:42:54 UTC (rev 13540)
+++ trunk/build/i18n/scripts/db-seed-i18n.py	2009-07-09 02:13:05 UTC (rev 13541)
@@ -18,6 +18,7 @@
 # GNU General Public License for more details.
 
 import basel10n
+import codecs
 import optparse
 import polib
 import re
@@ -59,7 +60,7 @@
         serts = dict()
 
         # Iterate through the source SQL grabbing table names and l10n strings
-        sourcefile = open(source)
+        sourcefile = codecs.open(source, encoding='utf-8')
         for line in sourcefile:
             try:
                 num = num + 1



More information about the open-ils-commits mailing list