From 41201a2c351a2741490007c89500f833de8b2b74 Mon Sep 17 00:00:00 2001 From: Juan Versolato Lopes Date: Tue, 27 Oct 2026 11:51:10 -0300 Subject: [PATCH] Fix GH-23875: Skip gh7980.phpt when windows-1258 is unavailable The windows-1258 charset is optional in glibc (on Fedora it ships in glibc-gconv-extra, which minimal images do not install), so the test fails with "Wrong encoding" instead of being skipped. Skip it when iconv cannot open the charset, like iconv002.phpt does for UCS-4LE. --- ext/iconv/tests/gh7980.phpt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/iconv/tests/gh7980.phpt b/ext/iconv/tests/gh7980.phpt index 11be9e129e02..b748c9f7cc63 100644 --- a/ext/iconv/tests/gh7980.phpt +++ b/ext/iconv/tests/gh7980.phpt @@ -2,6 +2,12 @@ Bug GH-7980 (Unexpected result for iconv_mime_decode) --EXTENSIONS-- iconv +--SKIPIF-- + --FILE-- ';