From: Petri Lehtinen Date: Tue, 4 Oct 2011 18:11:26 +0000 (+0300) Subject: json_load_file: Open the input file in rb mode X-Git-Tag: v2.2.1~2 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=commitdiff_plain;h=6362032513fc7c41c02a41c7673aa7421aabe297 json_load_file: Open the input file in rb mode For maximum compatibility. --- diff --git a/src/load.c b/src/load.c index 8942dd9..d60a93e 100644 --- a/src/load.c +++ b/src/load.c @@ -947,7 +947,7 @@ json_t *json_load_file(const char *path, size_t flags, json_error_t *error) jsonp_error_init(error, path); - fp = fopen(path, "r"); + fp = fopen(path, "rb"); if(!fp) { error_set(error, NULL, "unable to open %s: %s",