Commit 0967e5fb authored by Ghislain MARY's avatar Ghislain MARY

Attempt to fix VCard parsing on Android.

parent 6588f752
......@@ -126,7 +126,9 @@ shared_ptr<BelCardList> BelCardParser::parseFile(const string &filename) {
stringstream vcardStream;
vcardStream << istr.rdbuf();
// The following line has been replaced by the copy() because this was crashing with the gnustl library on Android.
//vcardStream << istr.rdbuf();
copy(istreambuf_iterator<char>(istr), istreambuf_iterator<char>(), ostreambuf_iterator<char>(vcardStream));
string vcard = vcardStream.str();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment