std::ostream & operator<<(std::ostream & os, Author const & a)
{
- os << "\"" << a.name() << "\" " << a.email();
+ // FIXME UNICODE
+ os << "\"" << to_utf8(a.name()) << "\" " << to_utf8(a.email());
return os;
}
{
string s;
getline(is, s);
- a.name_ = trim(token(s, '\"', 1));
- a.email_ = trim(token(s, '\"', 2));
+ // FIXME UNICODE
+ a.name_ = from_utf8(trim(token(s, '\"', 1)));
+ a.email_ = from_utf8(trim(token(s, '\"', 2)));
return is;
}
}
-Author const & AuthorList::get(int id)
+Author const & AuthorList::get(int id) const
{
Authors::const_iterator it(authors_.find(id));
BOOST_ASSERT(it != authors_.end());