mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-27 04:55:04 +03:00
79c8a6b105
Before, truncated UTF-8 sequences at the end of a file were treated as EOF. Create an error message containing the offending bytes. xmlStringCurrentChar would also print characters from the input stream, not the string it's working on.
8 lines
232 B
Plaintext
8 lines
232 B
Plaintext
./test/errors/partial_utf8_2.xml:1: parser error : Input is not proper UTF-8, indicate encoding !
|
|
Bytes: 0xE3 0xA0 EOF
|
|
<a>ã
|
|
^
|
|
./test/errors/partial_utf8_2.xml:1: parser error : Premature end of data in tag a line 1
|
|
<a>ã
|
|
^
|