]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Open the output stream in binary. We don't want CR/LFs here on mingw.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Sep 2008 00:10:14 +0000 (00:10 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:53 +0000 (12:15 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/write-catalog.c

index d68645db13a2950f3d1adc410e039ee322736a83..59403d3f1185f8ae51b8b571cf321f8a82b1a3b4 100644 (file)
@@ -1,3 +1,9 @@
+2008-09-28  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
 
        * Makefile.am (msg*_DEPENDENCIES, xgettext_DEPENDENCIES,
index 2f6c8377dbdcacf6a0350360374f68ecc85648af..a0f0d565f21c545d444e3941f9d794f584f6459b 100644 (file)
@@ -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);