OSDN Git Service
(root)
/
lha
/
lha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5251d34
)
* src/lhext.c (extract_one): On MinGW, set binary on stdout when
author
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 25 May 2002 18:14:16 +0000
(18:14 +0000)
committer
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 25 May 2002 18:14:16 +0000
(18:14 +0000)
print archive (`p' switch).
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@111
6a8cc165
-1e22-0410-a132-
eb4e3f353aba
src/lhext.c
patch
|
blob
|
history
diff --git
a/src/lhext.c
b/src/lhext.c
index
9bad6f0
..
0041c86
100644
(file)
--- a/
src/lhext.c
+++ b/
src/lhext.c
@@
-272,8
+272,20
@@
extract_one(afp, hdr)
verbose = TRUE;
}
+#if __MINGW32__
+ {
+ int old_mode;
+ fflush(stdout);
+ old_mode = setmode(fileno(stdout), O_BINARY);
+#endif
+
crc = decode_lzhuf
(afp, stdout, hdr->original_size, hdr->packed_size, name, method);
+#if __MINGW32__
+ fflush(stdout);
+ setmode(fileno(stdout), old_mode);
+ }
+#endif
quiet = save_quiet;
verbose = save_verbose;
}