Improve coercing of encoding types

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-06-18 15:48:13 +00:00
parent 70e31c8b61
commit 66f2f34e60

View file

@ -4118,6 +4118,11 @@ static NSCharacterSet *tokenSet = nil;
hadCarriageReturn = NO;
lineLength = 0;
}
else if (c == '\n')
{
encoding = @"binary"; // LF not part of CRLF
break;
}
else if (c == '\r')
{
hadCarriageReturn = YES;