mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 21:03:04 +00:00
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.
This commit is contained in:
@@ -360,6 +360,8 @@ FEATURE is a list of comma separated words that can include:\n\
|
||||
fputs (_("General help using GNU software: "
|
||||
"<http://www.gnu.org/gethelp/>.\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 "
|
||||
"<http://translationproject.org/team/>.\n"), stdout);
|
||||
#endif
|
||||
fputs (_("For complete documentation, run: info bison.\n"), stdout);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user