mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
70e31c8b61
commit
66f2f34e60
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue