[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope3-checkins
Subject:    [Zope3-checkins] CVS: Zope3/src/zope/i18n -
From:       Stephen Richter <cvs-admin () zope ! org>
Date:       2003-11-26 0:25:26
[Download RAW message or body]

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:


_______________________________________________
Zope3-Checkins mailing list
Zope3-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope3-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic