]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Write PO files in binary mode. Closes #61.
authorChristopher Lenz <cmlenz@gmail.com>
Wed, 5 Sep 2007 16:32:51 +0000 (16:32 +0000)
committerChristopher Lenz <cmlenz@gmail.com>
Wed, 5 Sep 2007 16:32:51 +0000 (16:32 +0000)
ChangeLog
babel/messages/frontend.py

index ca2789e205eeb0f230ab3da5155285520e2d99da..0e443c23491393b84f96765c702492a2d63391d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@ http://svn.edgewall.org/repos/babel/tags/0.9.1/
    `ngettext`, or vice versa.
  * Fixed time formatting for 12 am and 12 pm.
  * Fixed output encoding of the `pybabel --list-locales` command.
+ * PO files are now written in binary mode on windows (ticket #61).
 
 
 Version 0.9
index 60a841c341781c2ce0c5ef35afd75db7e54efc44..994effd9b689063aa72ef6b984307eb8dfc3b173 100755 (executable)
@@ -162,7 +162,7 @@ class compile_catalog(Command):
 
             log.info('compiling catalog %r to %r', po_file, mo_file)
 
-            outfile = open(mo_file, 'w')
+            outfile = open(mo_file, 'wb')
             try:
                 write_mo(outfile, catalog, use_fuzzy=self.use_fuzzy)
             finally:
@@ -752,7 +752,7 @@ class CommandLineInterface(object):
 
             self.log.info('compiling catalog %r to %r', po_file, mo_file)
 
-            outfile = open(mo_file, 'w')
+            outfile = open(mo_file, 'wb')
             try:
                 write_mo(outfile, catalog, use_fuzzy=options.use_fuzzy)
             finally: