Re: [Boost-bugs] [Boost C++ Libraries] #9749: bzip2_decompressor input filter gives data_error_magic

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9749: bzip2_decompressor input filter gives data_error_magic
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-06 20:26:18


#9749: bzip2_decompressor input filter gives data_error_magic
-------------------------------------------------+-------------------------
  Reporter: Balazs Andor Zalanyi | Owner: turkanis
  <zalanyi.balazs@…> | Status: new
      Type: Bugs | Component: iostreams
 Milestone: To Be Determined | Severity: Problem
   Version: Boost 1.55.0 | Keywords:
Resolution: | bzip2_decompressor
-------------------------------------------------+-------------------------

Comment (by Balazs Andor Zalanyi <zalanyi.balazs@…>):

 To reproduce the issue: download the wikidata dump - for example:
 http://dumps.wikimedia.org/wikidatawiki/20140123/wikidatawiki-20140123
 -pages-articles-multistream.xml.bz2
 and try to print it line by line.

 {{{
 std::ifstream df("wikidatawiki-20140123-pages-articles-
 multistream.xml.bz2", std::ios::in | std::ios::binary);
 boost::iostreams::filtering_stream<boost::iostreams::input> in;
 in.push(boost::iostreams::bzip2_decompressor());
 in.push(df);
 std::string s;
 while (std::getline(in, s)) {
   std::cout << s << std::endl;
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9749#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC