mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
7fea03e697
commit
df0421b216
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>
|
2011-05-02 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes):
|
* Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes):
|
||||||
|
|
|
@ -752,7 +752,9 @@ static SEL foundIgnorableSel;
|
||||||
*/
|
*/
|
||||||
enc = [GSMimeDocument encodingFromCharset:
|
enc = [GSMimeDocument encodingFromCharset:
|
||||||
[GSMimeDocument charsetForXml: data]];
|
[GSMimeDocument charsetForXml: data]];
|
||||||
if (enc == NSUTF8StringEncoding || enc == NSASCIIStringEncoding)
|
if (enc == NSUTF8StringEncoding
|
||||||
|
|| enc == NSASCIIStringEncoding
|
||||||
|
|| enc == GSUndefinedEncoding)
|
||||||
{
|
{
|
||||||
this->data = [data copy];
|
this->data = [data copy];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue