Re: failures with XS modules

2024-12-01 Thread Patrice Dumas
On Fri, Nov 22, 2024 at 12:10:33PM +0100, Patrice Dumas wrote: > Hello, > > Now that the XS modules are used, there are new errors in the CI. > > For Cygwin64 and Macos-13, there are many errors with translations. For > these platforms in the CI, the Perl version is 5.40.X, such that XS is > use

Re: failures with XS modules

2024-11-30 Thread Patrice Dumas
On Sat, Nov 30, 2024 at 12:09:06AM +, Gavin Smith wrote: > On Fri, Nov 29, 2024 at 05:28:58PM +0100, Patrice Dumas wrote: > > On Thu, Nov 28, 2024 at 11:50:31PM +0100, Patrice Dumas wrote: > > > I checked on a macos, and the failure happens only with LC_ALL=C. This > > > is something we alread

Re: failures with XS modules

2024-11-29 Thread Gavin Smith
On Fri, Nov 29, 2024 at 05:28:58PM +0100, Patrice Dumas wrote: > On Thu, Nov 28, 2024 at 11:50:31PM +0100, Patrice Dumas wrote: > > I checked on a macos, and the failure happens only with LC_ALL=C. This > > is something we already experienced in the past with libintl-perl. > > > > Both Perl calli

Re: failures with XS modules

2024-11-29 Thread Patrice Dumas
On Thu, Nov 28, 2024 at 11:50:31PM +0100, Patrice Dumas wrote: > I checked on a macos, and the failure happens only with LC_ALL=C. This > is something we already experienced in the past with libintl-perl. > > Both Perl calling gettext and the C only teximakehtml call fail to > translate strings.

Re: failures with XS modules

2024-11-28 Thread Patrice Dumas
On Wed, Nov 27, 2024 at 10:36:16PM +0100, Patrice Dumas wrote: > On Fri, Nov 22, 2024 at 12:10:33PM +0100, Patrice Dumas wrote: > > Hello, > > > > Now that the XS modules are used, there are new errors in the CI. > > > > For Cygwin64 and Macos-13, there are many errors with translations. For > >

Re: failures with XS modules

2024-11-27 Thread Patrice Dumas
On Fri, Nov 22, 2024 at 12:10:33PM +0100, Patrice Dumas wrote: > Hello, > > Now that the XS modules are used, there are new errors in the CI. > > For Cygwin64 and Macos-13, there are many errors with translations. For > these platforms in the CI, the Perl version is 5.40.X, such that XS is > use

Re: failures with XS modules

2024-11-27 Thread pertusus
On Wed, Nov 27, 2024 at 05:29:02PM +0200, Eli Zaretskii wrote: > > and getting the result from the return of the Perl function: > > result_sv = POPs; > > result_ret = SvPVutf8 (result_sv, len); > > OK, thanks. This should work, if we avoid the cases where the caller > allocates memory that Pe

Re: failures with XS modules

2024-11-27 Thread Eli Zaretskii
> Date: Wed, 27 Nov 2024 16:01:59 +0100 > From: pertu...@free.fr > Cc: Gavin Smith , bug-texinfo@gnu.org > > > Can you please explain what you mean by "calling back into Perl"? > > What kind of call is made from the C code of an XS, and what functions > > in Perl does it call? > > It is possible

Re: failures with XS modules

2024-11-27 Thread pertusus
On Wed, Nov 27, 2024 at 04:29:43PM +0200, Eli Zaretskii wrote: > > From: Gavin Smith > > Date: Tue, 26 Nov 2024 18:33:31 + > > > > On the two systems you mention (Cygwin64 and Macos-13), in spite of > > Perl appearing to be new enough, calling gettext does not work. It > > is presumed that c

Re: failures with XS modules

2024-11-27 Thread Eli Zaretskii
> From: Gavin Smith > Date: Tue, 26 Nov 2024 18:33:31 + > > On the two systems you mention (Cygwin64 and Macos-13), in spite of > Perl appearing to be new enough, calling gettext does not work. It > is presumed that calling back into Perl would work, though. Have I > understood the issue co

Re: failures with XS modules

2024-11-27 Thread Patrice Dumas
On Tue, Nov 26, 2024 at 06:33:31PM +, Gavin Smith wrote: > Could we make a configure-time check to see whether getting translations > with gettext works? I think it is something that we should be able > to determine automatically rather than trouble the user with a customization > variable. I

Re: failures with XS modules

2024-11-26 Thread Patrice Dumas
On Tue, Nov 26, 2024 at 06:33:31PM +, Gavin Smith wrote: > > Opinions?. > > If I understand correctly, there are two ways to get translations in > the XS modules. One is to call the gettext functions directly. The > other is to call back into the Perl interpreter to use the non-XS > translat

Re: failures with XS modules

2024-11-26 Thread Gavin Smith
On Mon, Nov 25, 2024 at 07:26:24PM +0100, Patrice Dumas wrote: > On Fri, Nov 22, 2024 at 07:14:40PM +, Gavin Smith wrote: > > On Fri, Nov 22, 2024 at 12:10:33PM +0100, Patrice Dumas wrote: > > > Hello, > > > > > > Now that the XS modules are used, there are new errors in the CI. > > > > > > F

Re: failures with XS modules

2024-11-25 Thread Patrice Dumas
On Fri, Nov 22, 2024 at 07:14:40PM +, Gavin Smith wrote: > On Fri, Nov 22, 2024 at 12:10:33PM +0100, Patrice Dumas wrote: > > Hello, > > > > Now that the XS modules are used, there are new errors in the CI. > > > > For Cygwin64 and Macos-13, there are many errors with translations. For > > t

Re: failures with XS modules [memcpy]

2024-11-25 Thread Patrice Dumas
On Fri, Nov 22, 2024 at 08:00:23PM +, Gavin Smith wrote: > I am going to change the memcpy call to memmove and hopefully that will > be enough. It works well, the CI pass fully now for OpenBSD. -- Pat

Re: failures with XS modules [memcpy]

2024-11-22 Thread Gavin Smith
On Fri, Nov 22, 2024 at 07:14:41PM +, Gavin Smith wrote: > I also patch texi2any to add a line: > > Texinfo::Transformations::protect_first_parenthesis_in_targets($tree); > > When I run > > export top_srcdir=../../ top_builddir=.. TEXINFO_DEV_SOURCE=1 > ./texi2any -c TREE_TRANSFORMATIONS=p

Re: failures with XS modules

2024-11-22 Thread Gavin Smith
On Fri, Nov 22, 2024 at 12:10:33PM +0100, Patrice Dumas wrote: > Hello, > > Now that the XS modules are used, there are new errors in the CI. > > For Cygwin64 and Macos-13, there are many errors with translations. For > these platforms in the CI, the Perl version is 5.40.X, such that XS is > use