https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77569
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #40446|0 |1 is obsolete| | Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 40447 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40447&action=edit gcc7-pr77569.patch Actually, the cb.error callback receives the message translated, without further modifications like expansion of %s etc., so if we just don't strstr for a substring, but instead strcmp with the whole message (after translation), I think it should work both in C/locales without translation for this message as well as locales that have it translated. As my iconv handles ebcdic correctly, I can't test though...