mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Improve handling of character sets in multipart/form-data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19428 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a1e4d0770c
commit
955690403e
4 changed files with 79 additions and 20 deletions
|
@ -60,6 +60,8 @@
|
|||
#include <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#undef HAVE_LIBXML_SAX2_H
|
||||
|
||||
/* libxml headers */
|
||||
#include <libxml/tree.h>
|
||||
#include <libxml/entities.h>
|
||||
|
@ -128,6 +130,10 @@ setupCache()
|
|||
if (cacheDone == NO)
|
||||
{
|
||||
cacheDone = YES;
|
||||
|
||||
#if HAVE_LIBXML_SAX2_H
|
||||
xmlDefaultSAXHandlerInit();
|
||||
#endif
|
||||
NSString_class = [NSString class];
|
||||
usSel = @selector(stringWithUTF8String:);
|
||||
usImp = [NSString_class methodForSelector: usSel];
|
||||
|
@ -2457,7 +2463,9 @@ static NSString *endMarker = @"At end of incremental parse";
|
|||
+ (void) initialize
|
||||
{
|
||||
if (cacheDone == NO)
|
||||
setupCache();
|
||||
{
|
||||
setupCache();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue