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

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


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
@@ -1110,6 +1110,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
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to