mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
c921482b85
commit
8fc2e74432
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…
Add table
Add a link
Reference in a new issue