1- /* Copyright (C) 1999-2001, 2003, 2005, 2008, 2012 Free Software Foundation, Inc.
1+ /* Copyright (C) 1999-2001, 2003, 2005, 2008, 2012, 2017 Free Software Foundation, Inc.
22 This file is part of the GNU LIBICONV Library.
33
44 The GNU LIBICONV Library is free software; you can redistribute it
@@ -98,7 +98,7 @@ int main (int argc, char* argv[])
9898#define BRACIFY (...) { __VA_ARGS__ }
9999#define DEFALIAS (xxx_alias ,xxx ) emit_alias(aliases_file,xxx_alias,#xxx);
100100
101- canonical_sh_file = fopen (canonical_sh_file_name , "w " );
101+ canonical_sh_file = fopen (canonical_sh_file_name , "wb " );
102102 if (canonical_sh_file == NULL ) {
103103 fprintf (stderr , "Could not open '%s' for writing\n" , canonical_sh_file_name );
104104 exit (1 );
@@ -107,7 +107,7 @@ int main (int argc, char* argv[])
107107 if (ferror (canonical_sh_file ) || fclose (canonical_sh_file ))
108108 exit (1 );
109109
110- canonical_sh_file = fopen (canonical_local_sh_file_name , "w " );
110+ canonical_sh_file = fopen (canonical_local_sh_file_name , "wb " );
111111 if (canonical_sh_file == NULL ) {
112112 fprintf (stderr , "Could not open '%s' for writing\n" , canonical_local_sh_file_name );
113113 exit (1 );
0 commit comments