Report actual error to the caller in encodings_convert_to_utf8_auto()
commit053667e3a95650691f1a48673c94794d98b1da37
authorColomban Wendling <ban@herbesfolles.org>
Tue, 12 Dec 2023 21:38:11 +0000 (12 22:38 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Tue, 12 Dec 2023 21:40:38 +0000 (12 22:40 +0100)
tree8baaf5dd089d2840eea7f7931db3de8a310b6f5a
parenteffe633ef710c690eeff4bb37ce5ce1d13d1c8fc
Report actual error to the caller in encodings_convert_to_utf8_auto()

This allows the caller to produce a more precise error message, and in
some cases handle specific failures specifically if it wants to.
src/document.c
src/encodings.c
src/encodingsprivate.h
src/templates.c
tests/test_encodings.c