#include "config.h"
+#include "diagnostic.h"
#include "input.h"
#include <ctype.h>
result->decode = i->decoder;
return;
}
- fprintf(stderr, "error: input encoding \"%s\" not supported\n", encoding);
+ errorf(NULL, "input encoding \"%s\" not supported", encoding);
}
result->decode = decode_utf8;
}