Edit

kc3-lang/libxml2/include/private/enc.h

Branch :

  • Show log

    Commit

  • Author : Nick Wellnhofer
    Date : 2023-08-08 15:21:31
    Hash : 95e81a36
    Message : parser: Decode all data in xmlCharEncInput Even with flush set to true, xmlCharEncInput didn't guarantee to decode all data. This complicated the push parser. Remove the flush flag and always decode all available data. Also fix ICU code where the flush flag has a different meaning. Always set flush to false and retry even with empty input buffers.

  • include/private/enc.h
  • #ifndef XML_ENC_H_PRIVATE__
    #define XML_ENC_H_PRIVATE__
    
    #include <libxml/encoding.h>
    #include <libxml/tree.h>
    
    XML_HIDDEN void
    xmlInitEncodingInternal(void);
    
    XML_HIDDEN int
    xmlEncInputChunk(xmlCharEncodingHandler *handler, unsigned char *out,
                     int *outlen, const unsigned char *in, int *inlen);
    XML_HIDDEN int
    xmlCharEncInput(xmlParserInputBufferPtr input);
    XML_HIDDEN int
    xmlCharEncOutput(xmlOutputBufferPtr output, int init);
    
    #endif /* XML_ENC_H_PRIVATE__ */