So I think I have found something significant.

I have three editions of gettext on my system: /usr/bin/gettext.exe (msys), the /mingw64/bin one, and /the mingw32/bin one.

When I run the /mingw64/bin executable, strace shows that it is looking for config files in /usr/share/gettext/its (which doesn't exist) instead of looking for /mingw64/share/gettext/its (which does exist) or /mingw64/share/gettext-0.19.8/its (which also exists). Was it built with a wrong prefix possibly?

Any ideas?

$ /usr/bin/gettext.exe --version
gettext (GNU gettext-runtime) 0.19.7
...
$ /mingw64/bin/gettext.exe --version
gettext.exe (GNU gettext-runtime) 0.19.8.1
...
$ /mingw32/bin/gettext.exe --version
gettext.exe (GNU gettext-runtime) 0.19.8.1


On 5/20/2017 7:40 PM, Alan W. Irwin wrote:
On 2017-05-20 13:18-0400 Matthew A. Postiff wrote:


mingw64 xgettext (0.19.8) is failing to process xml files. 0.19.7 on mingw64 behaved same.

$ xgettext --language=glade ../templates/gtkbuilder.*.xml -o bibledit.pot
C:\msys64\mingw64\bin\xgettext.exe: warning: file '../templates/gtkbuilder.bulkspellingdialog.xml' extension 'xml' is unknown; will try
C

Same command in msys2 window gives basically the same error:

xgettext: warning: file '../templates/gtkbuilder.bulkspellingdialog.xml' extension 'xml' is unknown; will try C

Same command on Ubuntu 16.04 (xgettext 0.19.7) runs this command just fine and produces output.

Any ideas? Thanks,

Hi Matthew:

One possibility is --language=glade might be a special case where you
are up against a soft package dependency error for the MinGW-w64/MSYS2
gettext package.  For example, on Debian Jessie the package
dependencies of gettext are as follows:

Depends: libc6 (>= 2.17), libffi6 (>= 3.0.4), libpcre3 (>= 1:8.35),
libselinux1 (>= 1.32), zlib1g (>= 1:1.2.2)
Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs

Some of those are not mentioned in
<https://github.com/Alexpux/MSYS2-packages/blob/master/gettext/PKGBUILD>.
I am not sure whether any of those unmentioned dependencies are
relevant to --language=glade support, but just in case one of them is,
I suggest you try installing the corresponding MinGW-w64/MSYS2 package
(assuming it exists) just in case that might make a difference to
--language=glade support.

Note, I am just lurking on this list at the moment with no practical
experience (yet) using MinGW-w64/MSYS2.  And I have no experience
using xgettext.  So I am relying solely on my package dependency
expertise in answering you, and you should keep that caveat in
mind.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to