mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Don't use whitespace and newline character set - loading it requires
nsuserdefaults, which in turn requires property-list parsing and leads to recursion. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3656 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3b06d679ef
commit
fc08f546a8
1 changed files with 5 additions and 0 deletions
|
@ -146,7 +146,12 @@ static void setupWhitespce()
|
|||
{
|
||||
if (whitespce == nil)
|
||||
{
|
||||
#if 0
|
||||
whitespce = [NSCharacterSet whitespaceAndNewlineCharacterSet];
|
||||
#else
|
||||
whitespce = [NSMutableCharacterSet characterSetWithCharactersInString:
|
||||
@" \t\r\n\f\b"];
|
||||
#endif
|
||||
[whitespce retain];
|
||||
whitespceImp =
|
||||
(BOOL(*)(id,SEL,unichar)) [whitespce methodForSelector: cMemberSel];
|
||||
|
|
Loading…
Reference in a new issue