Я отправил сообщение об ошибке в boost::iostreams::bzip2_decompressor() и boost::iostreams::bzip2_compressor() в boost_01.39.00
Отклика, однако не получил. Может быть это не ошибка библиотеки, а я что-то не так понимаю в этом фильтре?
Помогите разобраться, соберите у себя этот простой пример и скажите, будет ли он у вас падать?
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filter/bzip2.hpp>
#include <boost/iostreams/device/file.hpp>
int main() {
using namespace boost::iostreams;
using namespace std;
filtering_istream s;
file f("../FileListing/filelisting.xml.bz2", ios_base::in | ios_base::binary);
s.imbue(locale("C")); //I'm not sure about this string, but has a strong feeling - it should be here. It doesn't matter in this test anyway.
s.push(bzip2_decompressor());
s.push(f);
return 0;
//The program fails with SEGV here.
}
Я отправил сообщение об ошибке в boost::iostreams::bzip2_decompressor() и boost::iostreams::bzip2_compressor() в boost_01.39.00
Отклика, однако не получил. Может быть это не ошибка библиотеки, а я что-то не так понимаю в этом фильтре?
Помогите разобраться, соберите у себя этот простой пример и скажите, будет ли он у вас падать?
#include <boost/iostreams/filtering_stream.hpp> #include <boost/iostreams/filter/bzip2.hpp> #include <boost/iostreams/device/file.hpp> int main() { using namespace boost::iostreams; using namespace std; filtering_istream s; file f("../FileListing/filelisting.xml.bz2", ios_base::in | ios_base::binary); s.imbue(locale("C")); //I'm not sure about this string, but has a strong feeling - it should be here. It doesn't matter in this test anyway. s.push(bzip2_decompressor()); s.push(f); return 0; //The program fails with SEGV here. }