Changeset: 9a226845502a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9a226845502a
Modified Files:
        common/stream/stream.c
Branch: Oct2014
Log Message:

in case of bz2 files (without bom), still open the file for reading
(grafted from 639ea1f68ef4d928da3e11482460721d668ac039)


diffs (13 lines):

diff --git a/common/stream/stream.c b/common/stream/stream.c
--- a/common/stream/stream.c
+++ b/common/stream/stream.c
@@ -1140,6 +1140,9 @@ open_bzstream(const char *filename, cons
                                bzp->b = BZ2_bzReadOpen(&err, bzp->f, 0, 0, 
NULL, 0);
                        }
                }
+       } else if (flags[0] == 'r') {
+               bzp->b = BZ2_bzReadOpen(&err, bzp->f, 0, 0, NULL, 0);
+               s->access = ST_READ;
        } else {
                bzp->b = BZ2_bzWriteOpen(&err, bzp->f, 9, 0, 30);
                s->access = ST_WRITE;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to