>From cca7206a718f8602859175a77f47dffe2eabc860 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 28 Sep 2018 16:41:09 -0700 Subject: [PATCH 2/2] getargs: use LC_MESSAGES trick only on glibc * src/getargs.c (usage): Rely on setlocale (LC_MESSAGES, NULL) trick only on glibc, as POSIX does not specify the output of setlocale in this case, and the Gnulib localename module source code indicates that the trick works only on glibc. --- src/getargs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/getargs.c b/src/getargs.c index 5696c35f..95c681b5 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -360,6 +360,8 @@ FEATURE is a list of comma separated words that can include:\n\ fputs (_("General help using GNU software: " ".\n"), stdout); + +#if (defined __GLIBC__ && __GLIBC__ >= 2) && !defined __UCLIBC__ /* Don't output this redundant message for English locales. Note we still output for 'C' so that it gets included in the man page. */ @@ -372,6 +374,7 @@ FEATURE is a list of comma separated words that can include:\n\ email address. */ fputs (_("Report translation bugs to " ".\n"), stdout); +#endif fputs (_("For complete documentation, run: info bison.\n"), stdout); } -- 2.17.1