Nasty recursion problem fixed.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9714 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-04-26 16:19:12 +00:00
parent bc34d7aa64
commit 70179f6bd5
3 changed files with 23 additions and 1 deletions

View file

@ -307,8 +307,15 @@ handle_printf_atsign (FILE *stream,
+ (void) initialize
{
if (self == [NSString class])
/*
* Flag required as we call this method explicitly from GSBuildStrings()
* to ensure that NSString is initialised properly.
*/
static BOOL beenHere = NO;
if (self == [NSString class] && beenHere == NO)
{
beenHere = YES;
plSel = @selector(initWithCharacters:length:);
cMemberSel = @selector(characterIsMember:);
_DefaultStringEncoding = GetDefEncoding();