mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-09-15 13:44:13 +03:00
fixed to skip (if necessary) the BOM for encoding 'utf-16'. Completes the
* parserInternals.c: fixed to skip (if necessary) the BOM for encoding 'utf-16'. Completes the fix for bug #152286. * tree.c, parser.c: minor warning cleanup, no change to logic
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Sat Dec 25 18:10:02 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
|
* parserInternals.c: fixed to skip (if necessary) the BOM for
|
||||||
|
encoding 'utf-16'. Completes the fix for bug #152286.
|
||||||
|
* tree.c, parser.c: minor warning cleanup, no change to logic
|
||||||
|
|
||||||
Fri Dec 24 16:31:22 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
Fri Dec 24 16:31:22 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
* python/generator.py: added most required entires to
|
* python/generator.py: added most required entires to
|
||||||
|
@@ -258,7 +258,7 @@
|
|||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
#undef PACKAGE_VERSION
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
/* Define to 1 if the C compiler supports function prototypes. */
|
/* Define if compiler has function prototypes */
|
||||||
#undef PROTOTYPES
|
#undef PROTOTYPES
|
||||||
|
|
||||||
/* Determine what socket length (socklen_t) data type is */
|
/* Determine what socket length (socklen_t) data type is */
|
||||||
@@ -276,9 +276,6 @@
|
|||||||
/* Using the Win32 Socket implementation */
|
/* Using the Win32 Socket implementation */
|
||||||
#undef _WINSOCKAPI_
|
#undef _WINSOCKAPI_
|
||||||
|
|
||||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
|
||||||
#undef __PROTOTYPES
|
|
||||||
|
|
||||||
/* Win32 Std C name mangling work-around */
|
/* Win32 Std C name mangling work-around */
|
||||||
#undef snprintf
|
#undef snprintf
|
||||||
|
|
||||||
|
5
parser.c
5
parser.c
@@ -57,7 +57,10 @@
|
|||||||
#ifdef LIBXML_CATALOG_ENABLED
|
#ifdef LIBXML_CATALOG_ENABLED
|
||||||
#include <libxml/catalog.h>
|
#include <libxml/catalog.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
||||||
|
#include <libxml/xmlschemastypes.h>
|
||||||
|
#include <libxml/relaxng.h>
|
||||||
|
#endif
|
||||||
#ifdef HAVE_CTYPE_H
|
#ifdef HAVE_CTYPE_H
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1145,7 +1145,8 @@ xmlSwitchInputEncoding(xmlParserCtxtPtr ctxt, xmlParserInputPtr input,
|
|||||||
* UTF-16
|
* UTF-16
|
||||||
*/
|
*/
|
||||||
if ((handler->name != NULL) &&
|
if ((handler->name != NULL) &&
|
||||||
(!strcmp(handler->name, "UTF-16LE")) &&
|
(!strcmp(handler->name, "UTF-16LE") ||
|
||||||
|
!strcmp(handler->name, "UTF-16")) &&
|
||||||
(input->cur[0] == 0xFF) && (input->cur[1] == 0xFE)) {
|
(input->cur[0] == 0xFF) && (input->cur[1] == 0xFE)) {
|
||||||
input->cur += 2;
|
input->cur += 2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user