mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
tolerate missing/incorrect character encoding declarations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33012 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
91b513bfa8
commit
effa0292d8
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-05-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSXMLParser.m: treat unknown/undefined encodings as utf-8
|
||||
so we tolerate bad xml documents better.
|
||||
|
||||
2011-05-02 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes):
|
||||
|
|
|
@ -752,7 +752,9 @@ static SEL foundIgnorableSel;
|
|||
*/
|
||||
enc = [GSMimeDocument encodingFromCharset:
|
||||
[GSMimeDocument charsetForXml: data]];
|
||||
if (enc == NSUTF8StringEncoding || enc == NSASCIIStringEncoding)
|
||||
if (enc == NSUTF8StringEncoding
|
||||
|| enc == NSASCIIStringEncoding
|
||||
|| enc == GSUndefinedEncoding)
|
||||
{
|
||||
this->data = [data copy];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue