projects
/
profile
/
ivi
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0931d93
)
Revert "json_dump_file: Open the output file in wb mode"
author
Petri Lehtinen
<petri@digip.org>
Mon, 14 Nov 2011 19:15:17 +0000
(21:15 +0200)
committer
Petri Lehtinen
<petri@digip.org>
Mon, 14 Nov 2011 19:16:36 +0000
(21:16 +0200)
JSON is read as text, so line endings should be preserved.
This reverts commit
32cd82127390b9fd5b5d090bc3c279d3e4d9f3a6
.
src/dump.c
patch
|
blob
|
history
diff --git
a/src/dump.c
b/src/dump.c
index
089474d
..
37f5a40
100644
(file)
--- a/
src/dump.c
+++ b/
src/dump.c
@@
-427,7
+427,7
@@
int json_dump_file(const json_t *json, const char *path, size_t flags)
{
int result;
{
int result;
- FILE *output = fopen(path, "w
b
");
+ FILE *output = fopen(path, "w");
if(!output)
return -1;
if(!output)
return -1;