Open binary files in binary mode.  Fixes test failure under Windows.
diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py
index 5006fff..77a6e96 100644
--- a/Lib/test/test_gettext.py
+++ b/Lib/test/test_gettext.py
@@ -102,7 +102,7 @@
 
 def setup():
     os.makedirs(LOCALEDIR)
-    fp = open(MOFILE, 'w')
+    fp = open(MOFILE, 'wb')
     fp.write(base64.decodestring(GNU_MO_DATA))
     fp.close()