Re: implementation language [was: library for unicode collation in C for texi2any?]

2023-10-15 Thread Per Bothner
On 10/15/23 05:41, Gavin Smith wrote: texi2any is full of code like this: if ($target_element->{'extra'} and $target_element->{'extra'}->{'unit_command'}) { if ($target_element->{'extra'}->{'unit_command'}->{'cmdname'} eq 'node') { $command = $target_element

Re: MinGW "info" program broken?

2023-10-15 Thread Eli Zaretskii
> From: Bruno Haible > Cc: bug-texinfo@gnu.org > Date: Sun, 15 Oct 2023 16:07:28 +0200 > > Eli Zaretskii wrote: > > The stand-alone Info reader built with MinGW works > > flawlessly for me. > > > > > I had understood that "info" was running well on MinGW so it would be > > > worth > > > underst

Re: Texinfo 7.0.94 on native Windows

2023-10-15 Thread Eli Zaretskii
> From: Bruno Haible > Cc: gavinsmith0...@gmail.com, bug-texinfo@gnu.org > Date: Sun, 15 Oct 2023 16:25:56 +0200 > > Eli Zaretskii wrote: > > _popen accepts a MODE argument which can be used to control that, see > > > > > > https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/pop

Re: MinGW "info" program broken?

2023-10-15 Thread Bruno Haible
Eli Zaretskii wrote: > > It happens also with the mingw-w64 version 5.0.3 build. Let me > > investigate... > > Is this build with UCRT or with MSVCRT? The mingw-w64 5.0.3 built ginfo.exe is linked with MSVCRT. Only the MSVCRT built ginfo.exe is linked with the various api-ms-win-crt-*.dll, that

Re: Texinfo 7.0.94 on native Windows

2023-10-15 Thread Bruno Haible
Eli Zaretskii wrote: > _popen accepts a MODE argument which can be used to control that, see > > > https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/popen-wpopen?view=msvc-170 > > We use this in the stand-alone Info reader, for example, in this > snippet from info/filesys.c: >

Re: MinGW "info" program broken?

2023-10-15 Thread Eli Zaretskii
> From: Bruno Haible > Cc: bug-texinfo@gnu.org > Date: Sun, 15 Oct 2023 16:07:28 +0200 > > Eli Zaretskii wrote: > > The stand-alone Info reader built with MinGW works > > flawlessly for me. > > > > > I had understood that "info" was running well on MinGW so it would be > > > worth > > > underst

Re: MinGW "info" program broken?

2023-10-15 Thread Bruno Haible
Eli Zaretskii wrote: > The stand-alone Info reader built with MinGW works > flawlessly for me. > > > I had understood that "info" was running well on MinGW so it would be worth > > understanding any differences between yours and Bruno's setup. > > I'm indeed curious why this happens with the MSVC

Re: MinGW "info" program broken?

2023-10-15 Thread Eli Zaretskii
> From: Bruno Haible > Date: Sun, 15 Oct 2023 15:23:45 +0200 > > Gavin Smith wrote: > > I had understood that "info" was running well on MinGW so it would be worth > > understanding any differences between yours and Bruno's setup. > > I'm usually building with mingw-w64 5.0.3. > > Whereas Eli (

Re: Texinfo 7.0.94 on native Windows

2023-10-15 Thread Eli Zaretskii
> From: Bruno Haible > Cc: gavinsmith0...@gmail.com, bug-texinfo@gnu.org > Date: Sun, 15 Oct 2023 15:11:33 +0200 > > Eli Zaretskii wrote: > > > For 'popen' and 'pclose', one needs the gnulib modules 'popen' and > > > 'pclose', > > > respectively. > > > > Windows has _popen and _pclose, which ca

Re: MinGW "info" program broken?

2023-10-15 Thread Eli Zaretskii
> From: Gavin Smith > Date: Sun, 15 Oct 2023 13:17:53 +0100 > Cc: bug-texinfo@gnu.org > > On Sun, Oct 15, 2023 at 01:24:32PM +0200, Bruno Haible wrote: > > - The behaviour of the 'ginfo' program on MSVC is the same as on mingw, > > albeit not really useful currently: './info -f texinfo.info

Re: MinGW "info" program broken?

2023-10-15 Thread Bruno Haible
Gavin Smith wrote: > I had understood that "info" was running well on MinGW so it would be worth > understanding any differences between yours and Bruno's setup. I'm usually building with mingw-w64 5.0.3. Whereas Eli (AFAIK) often builds with the older mingw from the now-defunct mingw.org site. C

Re: Texinfo 7.0.94 on native Windows

2023-10-15 Thread Bruno Haible
Eli Zaretskii wrote: > > For 'popen' and 'pclose', one needs the gnulib modules 'popen' and 'pclose', > > respectively. > > Windows has _popen and _pclose, which can be used instead. _popen uses text mode, not binary mode, by default, AFAIK. This can be problematic. Bruno

Re: Texinfo 7.0.94 pretest available

2023-10-15 Thread Gavin Smith
On Sun, Oct 15, 2023 at 03:17:17PM +0300, Eli Zaretskii wrote: > > From: Gavin Smith > > Date: Sun, 15 Oct 2023 12:57:46 +0100 > > Cc: bug-texinfo@gnu.org > > > > On Sun, Oct 15, 2023 at 12:00:47PM +0300, Eli Zaretskii wrote: > > > Thanks. > > > > > > This doesn't compile with MinGW, because som

Re: implementation language [was: library for unicode collation in C for texi2any?]

2023-10-15 Thread Gavin Smith
On Sat, Oct 14, 2023 at 01:49:26PM -0700, Per Bothner wrote: > On 10/14/23 09:12, Patrice Dumas wrote: > > On Thu, Oct 12, 2023 at 10:25:23AM -0700, Per Bothner wrote: > > > C++ has a more extensive and useful standard library than C. > > > > I guess there is an hash map, but I am not sure that we

MinGW "info" program broken?

2023-10-15 Thread Gavin Smith
On Sun, Oct 15, 2023 at 01:24:32PM +0200, Bruno Haible wrote: > - The behaviour of the 'ginfo' program on MSVC is the same as on mingw, > albeit not really useful currently: './info -f texinfo.info' spits out > the entire manual to stdout at once. It looks like the device gets set > t

Re: Texinfo 7.0.94 pretest available

2023-10-15 Thread Eli Zaretskii
> From: Gavin Smith > Date: Sun, 15 Oct 2023 12:57:46 +0100 > Cc: bug-texinfo@gnu.org > > On Sun, Oct 15, 2023 at 12:00:47PM +0300, Eli Zaretskii wrote: > > Thanks. > > > > This doesn't compile with MinGW, because some of the dTHX additions I > > needed for the previous pretest were not installe

Re: Texinfo 7.0.94 on native Windows

2023-10-15 Thread Gavin Smith
On Sun, Oct 15, 2023 at 01:24:32PM +0200, Bruno Haible wrote: > On mingw 5.0.3, there are no test failures any more. > A big improvement, compared to 7.0.90 (see my earlier report at > ). This is likely to the fix that Eli sent

Re: Texinfo 7.0.94 on native Windows

2023-10-15 Thread Eli Zaretskii
> From: Bruno Haible > Date: Sun, 15 Oct 2023 13:24:32 +0200 > > For 'popen' and 'pclose', one needs the gnulib modules 'popen' and 'pclose', > respectively. Windows has _popen and _pclose, which can be used instead. That's what MinGW does, AFAIK. But I'm not sure Texinfo should try supporting

Re: Texinfo 7.0.94 pretest available

2023-10-15 Thread Gavin Smith
On Sun, Oct 15, 2023 at 12:00:47PM +0300, Eli Zaretskii wrote: > After fixing the above, most of the tests pass, but 3 texi2any tests > fail: > > FAIL: test_scripts/layout_formatting_info_ascii_punctuation.sh > FAIL: test_scripts/layout_formatting_info_disable_encoding.sh > FAIL: te

Re: Texinfo 7.0.94 pretest available

2023-10-15 Thread Gavin Smith
On Sun, Oct 15, 2023 at 12:00:47PM +0300, Eli Zaretskii wrote: > Thanks. > > This doesn't compile with MinGW, because some of the dTHX additions I > needed for the previous pretest were not installed(?), and are still > missing. The patch I needed is below. I hadn't installed those changes becau

Re: Texinfo 7.0.94 on native Windows

2023-10-15 Thread Bruno Haible
On mingw 5.0.3, there are no test failures any more. A big improvement, compared to 7.0.90 (see my earlier report at ). With MSVC 14 (64-bit) instead of mingw, though, there are compilation errors and warnings: C:\cygwin64\home

Re: Texinfo 7.0.94 pretest available

2023-10-15 Thread Eli Zaretskii
> From: Gavin Smith > Date: Sat, 14 Oct 2023 14:27:36 +0100 > Cc: platform-test...@gnu.org > > A pretest distribution for the next Texinfo release (7.1) has been > uploaded to > > https://alpha.gnu.org/gnu/texinfo/texinfo-7.0.94.tar.xz > > There have not been many changes since the previous pr