]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix msginit-4 test failure on Cygwin with --enable-shared.
authorBruno Haible <bruno@clisp.org>
Tue, 2 Oct 2018 19:04:10 +0000 (21:04 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Oct 2018 20:55:11 +0000 (22:55 +0200)
* gettext-tools/src/msginit.c (plural_forms): Include the program's directory
in argv[0].

gettext-tools/src/msginit.c

index da3f48104c05112bb09bd21cd63618263c4ad6ed..64aaea2dc4f21dc1f61c765c3486317c7d398602 100644 (file)
@@ -1377,8 +1377,11 @@ plural_forms ()
           last_dir = dir;
         }
 
-      /* Call the cldr-plurals command.  */
-      argv[0] = "cldr-plurals";
+      /* Call the cldr-plurals command.
+         argv[0] must be prog, not just the base name "cldr-plurals",
+         because on Cygwin in a build with --enable-shared, the libtool
+         wrapper of cldr-plurals.exe apparently needs this.  */
+      argv[0] = prog;
       argv[1] = (char *) language;
       argv[2] = last_dir;
       argv[3] = NULL;