From 64cbef8825b86f7137007d47a3043cd08229ac9a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 29 Sep 2008 00:10:14 +0000 Subject: [PATCH] Open the output stream in binary. We don't want CR/LFs here on mingw. --- gettext-tools/src/ChangeLog | 6 ++++++ gettext-tools/src/write-catalog.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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); -- 2.47.2