[Zope3-checkins] CVS: Zope3/src/zope/i18n - gettextmessagecatalog.py:1.11

Stephen Richter cvs-admin at zope.org
Tue Nov 25 19:25:26 EST 2003


Update of /cvs-repository/Zope3/src/zope/i18n
In directory cvs.zope.org:/tmp/cvs-serv30465/i18n

Modified Files:
	gettextmessagecatalog.py 
Log Message:
We need to read MO files in binary mode. This fixes the startup crashes in
Windows.


=== Zope3/src/zope/i18n/gettextmessagecatalog.py 1.10 => 1.11 ===
--- Zope3/src/zope/i18n/gettextmessagecatalog.py:1.10	Tue Aug 12 23:59:54 2003
+++ Zope3/src/zope/i18n/gettextmessagecatalog.py	Tue Nov 25 19:25:26 2003
@@ -41,7 +41,7 @@
 
     def reload(self):
         'See IMessageCatalog'
-        fp = open(self._path_to_file, 'r')
+        fp = open(self._path_to_file, 'rb')
         try:
             self._catalog = GNUTranslations(fp)
         finally:




More information about the Zope3-Checkins mailing list