Revert "json_dump_file: Open the output file in wb mode"
JSON is read as text, so line endings should be preserved.
This reverts commit 32cd821273.
This commit is contained in:
@@ -427,7 +427,7 @@ int json_dump_file(const json_t *json, const char *path, size_t flags)
|
||||
{
|
||||
int result;
|
||||
|
||||
FILE *output = fopen(path, "wb");
|
||||
FILE *output = fopen(path, "w");
|
||||
if(!output)
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user