This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/23803] [mingw32] getlog malfunction
- From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Sep 2005 23:53:28 -0000
- Subject: [Bug libfortran/23803] [mingw32] getlog malfunction
- References: <20050909223410.23803.fxcoudert@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dannysmith at users dot sourceforge dot net 2005-09-14 23:53 -------
(In reply to comment #0)
> mingw sets the USERNAME environment variable, we should use it to provide a
> getlog procedure.
NT and later set USERNAME by default. win95, win98 do not. The var may not
necessarily refect the logon name.
> Or we could use a windows API function (if there is one
> available on all windows versions).
GetUserName()
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23803