Commit 80260ac2 authored by Segher Boessenkool's avatar Segher Boessenkool

fix -c on mswindows (file was opened in binary mode).

svn path=/trunk/vorbis-tools/; revision=2955
parent b21c6cef
...@@ -435,7 +435,7 @@ void open_files(param_t *p) ...@@ -435,7 +435,7 @@ void open_files(param_t *p)
(strncmp(p->commentfilename,"-",2) == 0)) { (strncmp(p->commentfilename,"-",2) == 0)) {
p->com = stdin; p->com = stdin;
} else { } else {
p->com = fopen(p->commentfilename, "rb"); p->com = fopen(p->commentfilename, "r");
} }
if (p->com == NULL) { if (p->com == NULL) {
fprintf(stderr, fprintf(stderr,
...@@ -452,7 +452,7 @@ void open_files(param_t *p) ...@@ -452,7 +452,7 @@ void open_files(param_t *p)
(strncmp(p->commentfilename,"-",2) == 0)) { (strncmp(p->commentfilename,"-",2) == 0)) {
p->com = stdout; p->com = stdout;
} else { } else {
p->com = fopen(p->commentfilename, "wb"); p->com = fopen(p->commentfilename, "w");
} }
if (p->com == NULL) { if (p->com == NULL) {
fprintf(stderr, fprintf(stderr,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment