Commits

Anonymous committed 1f705a6

Ported [307] to 0.9.x branch.

  • Participants
  • Parent commits 2172100
  • Branches stable-0.9.x

Comments (0)

Files changed (2)

    `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

babel/messages/frontend.py

 
             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:
 
             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: