[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] getargs: don't translate first line of --version

From: Alyssa Ross
Subject: [PATCH] getargs: don't translate first line of --version
Date: Mon, 14 Jun 2021 21:54:40 +0000

Many bootstrap/ scripts parse the first line of
"bison --version" to check whether the Bison installed is new enough.

On my system, where the system language is Esperanto, most of these
scripts break, because the first line of "bison --version" is

    bison (GNU-a Bison) 3.7.6

A grep through po/*.po tells me that systems in Bulgarian,
Spanish, and Serbian would have the same issue.

To avoid this issue, don't translate this line.  It's not really
something that can be meaningfully translated anyway.

Here is a partial list of packages that expects the exact, English
format of the first line of "bison --version".  (These are just the
ones I got find from grepping sources I had checked out on my system.)

 - autoconf-archive (ax_prog_bison_version.m4 used by many other packages)
 - glibc
 - util-linux
 src/getargs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/getargs.c b/src/getargs.c
index 5984d826..697ad7eb 100644
--- a/src/getargs.c
+++ b/src/getargs.c
@@ -478,7 +478,7 @@ version (void)
   /* Some efforts were made to ease the translators' task, please
      continue.  */
-  printf (_("bison (GNU Bison) %s"), VERSION);
+  printf ("bison (GNU Bison) %s", VERSION);
   putc ('\n', stdout);
   fputs (_("Written by Robert Corbett and Richard Stallman.\n"), stdout);
   putc ('\n', stdout);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]