Changeset 3036


Ignore:
Timestamp:
Apr 8, 2007, 12:26:58 PM (18 years ago)
Author:
bird
Message:

Write files in binary mode. (fixes testcase)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/flex/main.c

    r3031 r3036  
    350350                }
    351351
    352                 prev_stdout = freopen (outfilename, "w+", stdout);
     352                prev_stdout = freopen (outfilename, "w+b", stdout);
    353353
    354354                if (prev_stdout == NULL)
     
    400400                }
    401401
    402                 if ((tablesout = fopen (tablesfilename, "w")) == NULL)
     402                if ((tablesout = fopen (tablesfilename, "wb")) == NULL)
    403403                        lerrsf (_("could not create %s"), tablesfilename);
    404404                if (pname)
     
    14871487
    14881488        if (backing_up_report) {
    1489                 backing_up_file = fopen (backing_name, "w");
     1489                backing_up_file = fopen (backing_name, "wb");
    14901490                if (backing_up_file == NULL)
    14911491                        lerrsf (_
Note: See TracChangeset for help on using the changeset viewer.