https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112652
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to r...@cebitec.uni-bielefeld.de from comment #2) > > --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > > Strange. On cfarm211 which is > > SunOS gcc-solaris11 5.11 11.3 sun4u sparc SUNW,SPARC-Enterprise > > the test passes. > > Can you check which libiconv got picked up there? The non-standard > OpenCSW packages on that system may include GNU libiconv and install > into default system directories, so they are picked up by default. /opt/csw/lib/libiconv.so.2 > > > You get no diagnostics for those lines at all? Buggy libconv? > > No. There's no separate libiconv on Solaris; the iconv* functions are > included in libc. On Linux I get: echo รก | iconv -f UTF-8 -t ASCII -; echo ๐ | iconv -f UTF-8 -t ISO-8859-1 - iconv: illegal input sequence at position 0 iconv: illegal input sequence at position 0 while on Solaris echo รก | iconv -f UTF-8 -t ASCII -; echo ๐ | iconv -f UTF-8 -t ISO-8859-1 - ? ? If it maps all characters which do not have representation in the destination character set into ?, then it is useless for the test in question.