From: Friedrich Beckmann Date: Sat, 4 Nov 2023 22:28:40 +0000 (+0100) Subject: i18n.c: added EOPNOTSUPP error code for MacOS X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1799abc8539bd1a49c72c5723d1fa89ff4463e3f;p=pspp i18n.c: added EOPNOTSUPP error code for MacOS With MacOS 14 the iconv library was changed by Apple. pspp uses the native iconv library. There is a different error code returned when an illegal 0xc0 UTF-8 code is converted. This results in a failed "convert invalid UTF-8 to ISO-8859-1" test in the regression. This patch now handles also EOPNOTSUPP. --- diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index 5e9aa0d59c..b70049ca06 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -214,6 +214,7 @@ try_recode (struct converter *cvtr, char fallbackchar, return out - 1 - out_; case EILSEQ: + case EOPNOTSUPP: if (outbytes == 0) return -E2BIG; if (!fallbackchar)