summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-09 08:59:17 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-05-09 08:59:17 (GMT)
commit8f0bd5657a384199d9203c753cecdd0a9b1f9bcb (patch)
tree89516f099bbdb9373f943b87c34ad4ee61ea7b1f /Tools
parenteb64af9201a199499a9918529484096127bc0348 (diff)
downloadcpython-8f0bd5657a384199d9203c753cecdd0a9b1f9bcb.zip
cpython-8f0bd5657a384199d9203c753cecdd0a9b1f9bcb.tar.gz
cpython-8f0bd5657a384199d9203c753cecdd0a9b1f9bcb.tar.bz2
Declare encoding. Use unsigned long constants. Fixes #728277.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/i18n/msgfmt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/i18n/msgfmt.py b/Tools/i18n/msgfmt.py
index 411e3ae..8a2d4e6 100755
--- a/Tools/i18n/msgfmt.py
+++ b/Tools/i18n/msgfmt.py
@@ -1,5 +1,5 @@
#! /usr/bin/env python
-
+# -*- coding: iso-8859-1 -*-
# Written by Martin v. Löwis <loewis@informatik.hu-berlin.de>
"""Generate binary message catalog from textual translation description.
@@ -82,8 +82,8 @@ def generate():
koffsets += [l1, o1+keystart]
voffsets += [l2, o2+valuestart]
offsets = koffsets + voffsets
- output = struct.pack("iiiiiii",
- 0x950412de, # Magic
+ output = struct.pack("Iiiiiii",
+ 0x950412deL, # Magic
0, # Version
len(keys), # # of entries
7*4, # start of key index