https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79183
Bug ID: 79183 Summary: Hard coded plurals in gimple-ssa-sprintf.c:2050 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: translation Assignee: unassigned at gcc dot gnu.org Reporter: fmarchal at perso dot be Target Milestone: --- gimple-ssa-sprintf.c contains two hard coded plurals starting from line 2050: const char* fmtstr = (info.bounded ? (1 < fmtres.range.min ? G_("%<%.*s%> directive output truncated while writing " "%wu bytes into a region of size %wu") : G_("%<%.*s%> directive output truncated while writing " "%wu byte into a region of size %wu")) : (1 < fmtres.range.min ? G_("%<%.*s%> directive writing %wu bytes " "into a region of size %wu") : G_("%<%.*s%> directive writing %wu byte " "into a region of size %wu"))); Beside, the plural rules are wrong for English. Plural should be used if fmtres.range.min is zero.