--- glib-2.82.0/gio/gcharsetconverter.c.orig +++ glib-2.82.0/gio/gcharsetconverter.c @@ -463,6 +463,9 @@ if (conv->iconv == (GIConv)-1) { + /* Clear conv->iconv so iconv_close(-1) is not called - see + * https://www.illumos.org/issues/14937 */ + conv->iconv = NULL; if (errsv == EINVAL) g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, _("Conversion from character set ā€œ%sā€ to ā€œ%sā€ is not supported"),