mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
More path handling tweaks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21860 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6ebfe03cf3
commit
8ba0f9a906
6 changed files with 35 additions and 35 deletions
|
@ -435,6 +435,17 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
_DefaultStringEncoding = GetDefEncoding();
|
||||
_ByteEncodingOk = GSIsByteEncoding(_DefaultStringEncoding);
|
||||
if (getenv("GNUSTEP_PATH_HANDLING") != 0)
|
||||
{
|
||||
if (strcmp("unix", getenv("GNUSTEP_PATH_HANDLING")) == 0)
|
||||
{
|
||||
pathHandling = PH_UNIX;
|
||||
}
|
||||
else if (strcmp("windows", getenv("GNUSTEP_PATH_HANDLING")) == 0)
|
||||
{
|
||||
pathHandling = PH_WINDOWS;
|
||||
}
|
||||
}
|
||||
|
||||
NSStringClass = self;
|
||||
[self setVersion: 1];
|
||||
|
|
|
@ -100,7 +100,6 @@ static void updateCache(NSUserDefaults *self)
|
|||
if (self == sharedDefaults)
|
||||
{
|
||||
NSArray *debug;
|
||||
NSString *string;
|
||||
|
||||
/**
|
||||
* If there is an array NSUserDefault called GNU-Debug,
|
||||
|
@ -131,20 +130,6 @@ static void updateCache(NSUserDefaults *self)
|
|||
= [self boolForKey: @"GSLogThread"];
|
||||
flags[NSWriteOldStylePropertyLists]
|
||||
= [self boolForKey: @"NSWriteOldStylePropertyLists"];
|
||||
|
||||
string = [self stringForKey: @"GSPathHandling"];
|
||||
if (string != nil)
|
||||
{
|
||||
/*
|
||||
* NB. path handling defaults to the 'gnustep' tolerant mode
|
||||
* so that files can be handled to read in the defaults database.
|
||||
* only once the database has been read in will the defaults
|
||||
* system update the mode. This avoids a horrible recursion
|
||||
* if we were to try to initialise the path handling mode from
|
||||
* the defaults system.
|
||||
*/
|
||||
[NSString setPathHandling: string];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue