Rhodri James
d23efea089
Fix external_entity_valuer() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
c9f258d842
Fix external_entity_param() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
2a08a268b6
Fix test_ignore_section_utf16_be() for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
0c17e937fd
Fix test_ignore_section_utf16() for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
7de6b0ce61
Fix test_ignore_section() to work correctly for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
ace7e46246
Fix test_predefined_entities() to work correctly with UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
70d19d635a
Remove speculative test from byte_character_handler().
...
byte_character_handler() used to test that the string pointer `s`
passed to it was at the correct offset ino the input buffer. This
is not guaranteed to be the case, and definitely won't be the case
if the input encoding has a different minimum bytes-per-character
to the internal encoding.
2017-08-29 23:13:13 +02:00
Rhodri James
bd93a149d2
Fix external_entity_good_cdata_ascii() to work with UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
e18b2b398d
Fix rsqb_handler() to work correctly in UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
7de283270f
Fix cr_cdata_handler() to work correctly for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
32f7f8b69f
Fix test_cdata_default() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
279e29a9d4
Fix test_attributes() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
285199b6d2
Fix counting_start_element_handler() to use XML_Char correctly
2017-08-29 23:13:13 +02:00
Rhodri James
4fe2c1a5e4
Fix test_set_base() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
093c5c9258
Fix test_multichar_cdata_utf16() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
7bc8663933
Fix test_long_cdata_utf16() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
18ccc4b65a
Fix test_good_cdata_utf16_le() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
cda42d84c9
Fix test_good_cdata_utf16() to work for UTF-16 builds (ironicly)
2017-08-29 23:13:13 +02:00
Rhodri James
4a8980afd5
Fix test_good_cdata_ascii() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
4ac42fcc89
Fix test_dtd_attr_handling() to work with UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
6129536b7d
Fix test_dtd_default_handling() to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
388219c03a
Fix test_not_standalone_handler_accept() to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
d550ca2dc5
Fix test_not_standalone_handler_accept() to work in UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
c7abdc8536
Fix test_wfc_undeclared_entity_with_external_subset() for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
e4ca396c1c
Fix test_ext_entity_set_bom() to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
f0a5129bd4
Fix test_ext_entity_no_handler() to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
d4e08e98ce
Fix test_ext_entity_set_encoding to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
cea58e4172
Fix UnknownEncodingHandler to work with UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
dc2b79611e
Fix attribute whitespace normalization tests for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
fd6e43f64a
Fix whitespace normalization tests for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
c9c6a7bb27
Ensure encoding passed to XML_SetEncoding is always const XML_Char*
2017-08-29 23:13:13 +02:00
Rhodri James
f770d7abf7
Fix test_utf16() to work for UTF-16 builds
2017-08-29 22:30:33 +02:00
Rhodri James
61995637fd
Fix test_utf8_false_rejection() to work in UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
2d1020a2e4
Fix test_french_utf8() to work in UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
47ddbf3edc
Fix test_french_latin1() to work in UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
4d39fc0bfa
Fix test_french_charref_decimal() to work for UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
0731c0b8de
Fix test_french_charref_hexidecimal() to work for UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
c486259c69
Fix test_latin1_umlauts() to work for UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
87899c4ff1
Fix test_danish_latin1() to handle UTF-16
2017-08-29 22:30:32 +02:00
Rhodri James
1e11b39311
Add wrapper macro to give string literals the right type for XML_Char*
2017-08-29 22:30:32 +02:00
Rhodri James
0cf316f825
Ensure the _check functions take parse text as char not XML_Char
...
_run_character_check() et al pass their parse text to XML_Parse()
via _XML_Parse_SINGLE_BYTES(). Both of these expect the parse text
as "const char *", not "const XML_Char *".
2017-08-29 22:30:32 +02:00
Rhodri James
c64f7a6a65
Fix wide character issues in param_entity_match_handler()
2017-08-29 22:30:32 +02:00
Rhodri James
0a7631ae64
Add macros for XML_Char-based strncmp and strlen equivalents
2017-08-29 22:30:32 +02:00
Rhodri James
3bda331fff
Fix wide character comparisons in external_entity_optioner()
2017-08-29 22:30:32 +02:00
Rhodri James
f57d8914a0
Define and use macros for XML_Char and XML_Char* format strings
2017-08-29 22:30:32 +02:00
Rhodri James
3278570027
Prevent XML_UNICODE being redefined
2017-08-29 22:30:32 +02:00
Rhodri James
5baf114b7f
examples: Use printf rather than [f]put[w]s (pull request #135 )
2017-08-29 20:08:52 +02:00
Sebastian Pipping
bc6468d230
xmlparse.c: Resolve superfluous internal malloc/realloc switch ( #6 )
2017-08-29 00:39:58 +02:00
Sebastian Pipping
448d79c02e
xmltok.c: Use memcpy
...
Fixes false positive Clang (4.0.1) Static Analyzer warning (issue #9 )
as a side-effect.
2017-08-28 22:21:10 +02:00
Sebastian Pipping
e4661bfb85
xmlwf: Address Clang Static Analyzer warning
2017-08-28 21:38:44 +02:00