From: Bruno Haible Date: Mon, 29 Sep 2008 00:10:14 +0000 (+0000) Subject: Open the output stream in binary. We don't want CR/LFs here on mingw. X-Git-Tag: v0.18~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64cbef8825b86f7137007d47a3043cd08229ac9a;p=thirdparty%2Fgettext.git Open the output stream in binary. We don't want CR/LFs here on mingw. --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index d68645db1..59403d3f1 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,9 @@ +2008-09-28 Bruno Haible + + * write-catalog.c (msgdomain_list_print): Open the output stream in + binary mode, for consistency with the term_styled_ostream or fd_stream + based case. + 2008-09-28 Bruno Haible * Makefile.am (msg*_DEPENDENCIES, xgettext_DEPENDENCIES, diff --git a/gettext-tools/src/write-catalog.c b/gettext-tools/src/write-catalog.c index 2f6c8377d..a0f0d565f 100644 --- a/gettext-tools/src/write-catalog.c +++ b/gettext-tools/src/write-catalog.c @@ -266,7 +266,7 @@ message catalog has plural form translations, but the output format does not sup /* Open the output file. */ if (!to_stdout) { - fp = fopen (filename, "w"); + fp = fopen (filename, "wb"); if (fp == NULL) { const char *errno_description = strerror (errno);