projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2485ec4
)
zip-test: Open files in binary mode.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 2 Aug 2020 21:57:31 +0000
(21:57 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 2 Aug 2020 22:32:54 +0000
(22:32 +0000)
Fixes a test failure on mingw.
tests/libpspp/zip-test.c
patch
|
blob
|
history
diff --git
a/tests/libpspp/zip-test.c
b/tests/libpspp/zip-test.c
index 9b44c1e7c2ad2adb0cfeae96ef2f337a849a1cd4..777b37a795259c2f4ca93062e8378d197cfd9140 100644
(file)
--- a/
tests/libpspp/zip-test.c
+++ b/
tests/libpspp/zip-test.c
@@
-54,7
+54,7
@@
main (int argc, char **argv)
struct zip_writer *zw = zip_writer_create (argv[2]);
for (i = 3; i < argc; ++i)
{
- FILE *fp = fopen (argv[i], "r");
+ FILE *fp = fopen (argv[i], "r
b
");
if (!fp) check_die ();
zip_writer_add (zw, fp, argv[i]);
}
@@
-76,7
+76,7
@@
main (int argc, char **argv)
{
int x = 0;
struct zip_member *zm ;
- FILE *fp = fopen (argv[i], "w");
+ FILE *fp = fopen (argv[i], "w
b
");
if (NULL == fp)
{
int e = errno;