on xenial help sign in
Use utf8 encoding
commitf8958971f7514be61bd0cbd22c5e28798a45edbd authorMichael Terry <michael.terry@canonical.com> dateThu 4 Feb 2016, 09:10 (11 years ago) parentb864eb9
1 file changed+1−1
plugins/IntegratedLightDM/liblightdm/UsersModelPrivate.cpp+1−1
plugins/IntegratedLightDM/liblightdm/UsersModelPrivate.cpp+1−1
@@ -47,7 +47,7 @@ UsersModelPrivate::UsersModelPrivate(UsersModel* parent)
4747 // for the user's real name. But we aren't. We *should* ask
4848 // AccountsService for the real name, like liblightdm does internally,
4949 // but this is close enough since AS and passwd are always in sync.
50− QString realName = g_get_real_name(); // gets name from passwd entry
50+ QString realName = QString::fromUtf8(g_get_real_name()); // gets name from passwd entry
5151 if (realName == QStringLiteral("Unknown")) { // glib doesn't translate this string
5252 realName.clear();
5353 }