[subset] Fix Windows issue on endlines (#756)

This commit is contained in:
Ebrahim Byagowi 2018-02-06 13:20:38 +03:30 committed by GitHub
parent f41b92134a
commit 70e13ade81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ struct subset_consumer_t
unsigned int data_length;
const char* data = hb_blob_get_data (blob, &data_length);
FILE *fp_out = fopen(output_file, "w");
FILE *fp_out = fopen(output_file, "wb");
if (fp_out == nullptr) {
fprintf(stderr, "Unable to open output file\n");
return false;