Mercurial > babel > old > mirror
changeset 282:861e651fe44e stable
Ported [307] to 0.9.x branch.
author | cmlenz |
---|---|
date | Wed, 05 Sep 2007 16:33:22 +0000 |
parents | 65c6ca63aca3 |
children | 6aec37b65b30 |
files | 0.9.x/ChangeLog 0.9.x/babel/messages/frontend.py |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/0.9.x/ChangeLog +++ b/0.9.x/ChangeLog @@ -7,6 +7,7 @@ `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
--- a/0.9.x/babel/messages/frontend.py +++ b/0.9.x/babel/messages/frontend.py @@ -162,7 +162,7 @@ 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 @@ 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: