mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Fixed bug #153937, making sure the conversion functions return the number
* encoding.c doc/examples/testWriter.c: Fixed bug #153937, making sure the conversion functions return the number of byte written. Had to fix one of the examples. Daniel
This commit is contained in:
@@ -1168,8 +1168,8 @@ ConvertInput(const char *in, const char *encoding)
|
||||
if (out != 0) {
|
||||
temp = size - 1;
|
||||
ret = handler->input(out, &out_size, (const xmlChar *) in, &temp);
|
||||
if (ret || temp - size + 1) {
|
||||
if (ret) {
|
||||
if ((ret < 0) || (temp - size + 1)) {
|
||||
if (ret < 0) {
|
||||
printf("ConvertInput: conversion wasn't successful.\n");
|
||||
} else {
|
||||
printf
|
||||
|
||||
Reference in New Issue
Block a user