From: Bruno Haible Date: Tue, 2 Oct 2018 19:04:10 +0000 (+0200) Subject: Fix msginit-4 test failure on Cygwin with --enable-shared. X-Git-Tag: v0.20~375 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b6630a153af09a11551ad4005c42e6b6c53135a;p=thirdparty%2Fgettext.git Fix msginit-4 test failure on Cygwin with --enable-shared. * gettext-tools/src/msginit.c (plural_forms): Include the program's directory in argv[0]. --- diff --git a/gettext-tools/src/msginit.c b/gettext-tools/src/msginit.c index da3f48104..64aaea2dc 100644 --- a/gettext-tools/src/msginit.c +++ b/gettext-tools/src/msginit.c @@ -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;