X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fauthor.C;h=ea05ccd83d53dda7c494f6b814a1a1c09945dfb9;hb=52eb91c94fb70d58dceef430659c8781de2eccda;hp=60817affe0da43622d627908f96aa2feb86b990d;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/author.C b/src/author.C index 60817affe0..ea05ccd83d 100644 --- a/src/author.C +++ b/src/author.C @@ -35,7 +35,8 @@ bool operator==(Author const & l, Author const & r) 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; } @@ -43,8 +44,9 @@ std::istream & operator>>(std::istream & is, Author & a) { 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; }