win32 compilation fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14962 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-09-10 10:32:41 +00:00
parent 35515415a3
commit cfb1d179e6

View File

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