]> git.lyx.org Git - lyx.git/commitdiff
Compile fix for mingw
authorEnrico Forestieri <forenr@lyx.org>
Sat, 27 Apr 2019 10:53:05 +0000 (12:53 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 27 Apr 2019 10:53:05 +0000 (12:53 +0200)
This was probably overlooked at [7bb08f10/lyxgit].

src/support/userinfo.cpp

index 30a7c543eff151b5bcd5d68a17996a8ee6c7b9c3..4496a289b77ed5e6ba0bf172830b230d98e4f969 100644 (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());