1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

Stop using doc->charset outside parser code

doc->charset does not specify the in-memory encoding which is always
UTF-8.
This commit is contained in:
Nick Wellnhofer
2018-10-13 15:23:35 +02:00
parent 39fbfb4fd0
commit ee501f5449
4 changed files with 5 additions and 47 deletions

View File

@@ -575,7 +575,7 @@ struct _xmlDoc {
void *ids; /* Hash table for ID attributes if any */
void *refs; /* Hash table for IDREFs attributes if any */
const xmlChar *URL; /* The URI for that document */
int charset; /* encoding of the in-memory content
int charset; /* Internal flag for charset handling,
actually an xmlCharEncoding */
struct _xmlDict *dict; /* dict used to allocate names or NULL */
void *psvi; /* for type/PSVI informations */