mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Updates to reduce global namespace pollution. Plenty more remaining.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23795 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9d71af9cbf
commit
eae859d1c7
85 changed files with 1090 additions and 1277 deletions
|
@ -1082,7 +1082,7 @@ NSHomeDirectoryForUser(NSString *loginName)
|
|||
pw = getpwnam ([loginName cString]);
|
||||
if (pw != 0 && pw->pw_dir != NULL)
|
||||
{
|
||||
s = [NSString stringWithCString: pw->pw_dir];
|
||||
s = [NSString stringWithUTF8String: pw->pw_dir];
|
||||
}
|
||||
[gnustep_global_lock unlock];
|
||||
#else
|
||||
|
@ -1152,7 +1152,7 @@ NSFullUserName(void)
|
|||
struct passwd *pw;
|
||||
|
||||
pw = getpwnam([NSUserName() cString]);
|
||||
userName = [NSString stringWithCString: pw->pw_gecos];
|
||||
userName = [NSString stringWithUTF8String: pw->pw_gecos];
|
||||
#else
|
||||
NSLog(@"Warning: NSFullUserName not implemented\n");
|
||||
userName = NSUserName();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue