Compile fix for mingw

This was probably overlooked at [7bb08f10/lyxgit].
This commit is contained in:
Enrico Forestieri 2019-04-27 12:53:05 +02:00
parent c286228315
commit d5567ac36f

View File

@ -42,7 +42,7 @@ string const user_name()
char name[UNLEN + 1];
DWORD size = UNLEN + 1;
if (!GetUserName(name, &size))
return _("Unknown user");
return to_utf8(_("Unknown user"));
return to_utf8(from_local8bit(name));
#else
struct passwd * pw = getpwuid(geteuid());