]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
msgfmt: Tcl: Produce the same output on native Windows as elsewhere.
authorBruno Haible <bruno@clisp.org>
Tue, 20 Aug 2024 13:30:23 +0000 (15:30 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 20 Aug 2024 13:30:23 +0000 (15:30 +0200)
* gettext-tools/src/write-tcl.c (msgdomain_write_tcl): Invoke fopen with 'b'
flag, so as to force Unix newlines.

gettext-tools/src/write-tcl.c

index fd4c29aaefbd7bf0e3ebaa2881def1ae1cbbd1d2..f5e49b8a412e9d5bf28d4f1da0d881d5ceaf947f 100644 (file)
@@ -311,7 +311,7 @@ but the Tcl message catalog format doesn't support plural handling\n")));
 
     file_name = xconcatenated_filename (directory, frobbed_locale_name, ".msg");
 
-    output_file = fopen (file_name, "w");
+    output_file = fopen (file_name, "wb");
     if (output_file == NULL)
       {
         error (0, errno, _("error while opening \"%s\" for writing"),