bug-gettext
[Top][All Lists]
Advanced

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

[bug #66356] On Windows: msginit fails to run cldr-plurals if shared bui


From: Michele Locati
Subject: [bug #66356] On Windows: msginit fails to run cldr-plurals if shared build
Date: Sun, 20 Oct 2024 06:25:55 -0400 (EDT)

Follow-up Comment #2, bug #66356 (group gettext):

I managed to get cldr-plurals working with these changes:

--- a/msginit.c
+++ b/msginit.c
@@ -1443,6 +1443,7 @@
       size_t linesize;
       size_t linelen;
       int exitstatus;
+      const char *bindir;
 
       gettextlibdir = getenv ("GETTEXTLIBEXECDIR_BUILDDIR");
       if (gettextlibdir == NULL || gettextlibdir[0] == '\0')
@@ -1460,7 +1461,6 @@
           free (last_dir);
           last_dir = dir;
         }
-
       /* 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
@@ -1469,7 +1469,8 @@
       argv[1] = language;
       argv[2] = last_dir;
       argv[3] = NULL;
-      child = create_pipe_in (prog, prog, argv, NULL,
+      bindir = relocate (BINDIR);
+      child = create_pipe_in (prog, prog, argv, bindir,
                               DEV_NULL, false, true, false, fd);
       free (last_dir);
       if (child == -1)




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66356>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

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