[Python-checkins] CVS: python/dist/src/Lib gettext.py,1.4,1.5

Barry Warsaw python-dev@python.org
Thu, 31 Aug 2000 03:45:56 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv11272

Modified Files:
	gettext.py 
Log Message:
GNUTranslations.BE_MAGIC: don't be so clever in calculating this from
LE_MAGIC; it breaks on Tru64.


Index: gettext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/gettext.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** gettext.py	2000/08/30 03:29:58	1.4
--- gettext.py	2000/08/31 10:45:54	1.5
***************
*** 126,130 ****
      # Magic number of .mo files
      LE_MAGIC = 0x950412de
!     BE_MAGIC = struct.unpack('>i', struct.pack('<i', LE_MAGIC))[0]
  
      def _parse(self, fp):
--- 126,130 ----
      # Magic number of .mo files
      LE_MAGIC = 0x950412de
!     BE_MAGIC = 0xde120495
  
      def _parse(self, fp):