$B?5!wL$Mh%M%C%H$G$9!#(B
# w3m-0.1.8 $B%j%j!<%9$*$a$G$H$&$4$6$$$^$9(B (^^;;
w3m-0.1.6 $B$G!"(Bbzip2$B$N%Q%C%A$r<h$j$3$s$G$$$?$@$$$F$"$j$,$H$&$4$6$$$^$9!#(B
$B$D$$$G$K%P%0$r8+IU$^$7$?!#C;$+$$$N$G!"$=$N$^$^IU$1$F$*$-$^$9!#(B
*** file.c Thu Apr 6 21:53:43 2000
--- file-bug.c Thu Apr 6 21:52:42 2000
***************
*** 175,180 ****
--- 175,181 ----
examineFile(char *path, void (**close_rout)())
{
struct stat stbuf;
+ int cmpst; /* Compression status */
if (close_rout)
*close_rout = (void(*)())fclose;
***************
*** 192,203 ****
--- 193,207 ----
if (strcasecmp(".Z", &path[strlen(path)-2]) == 0) {
Strshrink(fn,2);
+ cmpst = CMP_GZIP;
}
else if (strcasecmp(".bz2", &path[strlen(path)-4]) == 0) {
Strshrink(fn,4);
+ cmpst = CMP_BZIP2;
}
else {
Strshrink(fn,3);
+ cmpst = CMP_GZIP;
}
t0 = guessContentType(fn->ptr);
if (t0 == NULL)
***************
*** 208,214 ****
fp = fopen(path, "r");
if (close_rout)
*close_rout = (void(*)())pclose;
! return gunzip_stream(fp,CMP_GZIP);
}
if (getenv("LESSOPEN") != NULL) {
FILE *fp = lessopen_stream(path);
--- 212,218 ----
fp = fopen(path, "r");
if (close_rout)
*close_rout = (void(*)())pclose;
! return gunzip_stream(fp,cmpst);
}
if (getenv("LESSOPEN") != NULL) {
FILE *fp = lessopen_stream(path);
This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:55 CDT