From: Enrico Forestieri Date: Sat, 27 Apr 2019 10:53:05 +0000 (+0200) Subject: Compile fix for mingw X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7eb4f83de9afe7ed338849da3b5707c9a11d3a53;p=features.git Compile fix for mingw This was probably overlooked at [7bb08f10/lyxgit]. --- diff --git a/src/support/userinfo.cpp b/src/support/userinfo.cpp index 30a7c543ef..4496a289b7 100644 --- a/src/support/userinfo.cpp +++ b/src/support/userinfo.cpp @@ -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());