Skip to content

Commit

Permalink
encoding: Fix ICU build
Browse files Browse the repository at this point in the history
  • Loading branch information
nwellnhof committed Jul 3, 2024
1 parent 80aabea commit 71fb257
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,6 @@ xmlNewCharEncodingHandler(const char *name,
handler->iconv_in = NULL;
handler->iconv_out = NULL;
#endif
#ifdef LIBXML_ICU_ENABLED
handler->uconv_in = NULL;
handler->uconv_out = NULL;
#endif

/*
* registers and returns the handler.
Expand Down Expand Up @@ -1348,8 +1344,8 @@ xmlUconvFree(void *vctxt) {
}

static int
xmlCharEncUconv(void *vctxt, const char *name, xmlCharEncConverter *conv) {
xmlCharEncodingHandler *handler = vctxt;
xmlCharEncUconv(void *vctxt ATTRIBUTE_UNUSED, const char *name,
xmlCharEncConverter *conv) {
xmlUconvCtxt *ucv_in = NULL;
xmlUconvCtxt *ucv_out = NULL;
int ret;
Expand All @@ -1367,12 +1363,6 @@ xmlCharEncUconv(void *vctxt, const char *name, xmlCharEncConverter *conv) {
conv->inputCtxt = ucv_in;
conv->outputCtxt = ucv_out;

/* Backward compatibility */
if (handler != NULL) {
handler->uconv_in = ucv_in;
handler->uconv_out = ucv_out;
}

return(XML_ERR_OK);

error:
Expand Down

0 comments on commit 71fb257

Please sign in to comment.