@verb issues

2022-12-03 Thread Werner LEMBERG
[texinfo.tex 2022-12-03.17] Consider the following input. ``` \input texinfo Test Test Test Test Test @verb{@foo@bar bar bar `doodle' doo tiddle di tiddle toggle di toggle dum di dum @} Test @bye ``` (This is a first long line, with a line break after the first 'dum'.) Is the attached resu

Re: install-info can "corrupt" dir file if interrupted.

2022-12-03 Thread Andreas Schwab
On Dez 03 2022, Gavin Smith wrote: > I've done this: > > --- a/install-info/install-info.c > +++ b/install-info/install-info.c > @@ -1054,7 +1054,20 @@ output_dirfile (char *dirfile, int dir_nlines, struct > line_data *dir_lines, >/* Update dir file atomically. This stops the dir file being

Re: install-info can "corrupt" dir file if interrupted.

2022-12-03 Thread Eli Zaretskii
> From: Gavin Smith > Date: Sat, 3 Dec 2022 19:19:50 + > Cc: ped...@gmail.com, bug-texinfo@gnu.org > > On Sat, Dec 03, 2022 at 08:54:42PM +0200, Eli Zaretskii wrote: > > I suggest the other way around: try renaming, and if it fails, remove and > > retry renaming. This way, if remove fails, i

Re: install-info can "corrupt" dir file if interrupted.

2022-12-03 Thread Gavin Smith
On Sat, Dec 03, 2022 at 08:54:42PM +0200, Eli Zaretskii wrote: > I suggest the other way around: try renaming, and if it fails, remove and > retry renaming. This way, if remove fails, it fails the entire renaming > operation, and you don't need to deal with remove failing due to unrelated > reason

Re: install-info can "corrupt" dir file if interrupted.

2022-12-03 Thread Eli Zaretskii
> From: Gavin Smith > Date: Sat, 3 Dec 2022 18:26:26 + > Cc: ped...@gmail.com, bug-texinfo@gnu.org > > > Moreover, the MS runtime implements 'rename' in a way that fails if the > > destination exists. So you will need the Gnulib replacement for it. > > That is quite a big difference. > > I

Re: install-info can "corrupt" dir file if interrupted.

2022-12-03 Thread Gavin Smith
On Sat, Dec 03, 2022 at 07:52:46PM +0200, Eli Zaretskii wrote: > > From: Gavin Smith > > Date: Sat, 3 Dec 2022 15:25:20 + > > Cc: Texinfo > > > > The report was dir file corruption if install-info was interrupted. > > > > I've attempted to fix this issue by creating a temporary file with >

Re: runaway recursion in makeinfo

2022-12-03 Thread Gavin Smith
On Mon, Nov 21, 2022 at 04:35:29PM -0800, David Bacon wrote: > I am already working with a patched texinfo.tex, so I would be happy to be > a guinea pig (and likely early adopter) for your proposed table-of-contents > feature if you want one. Could you try texinfo.tex version 2022-12-03.17? (git

Re: install-info can "corrupt" dir file if interrupted.

2022-12-03 Thread Eli Zaretskii
> From: Gavin Smith > Date: Sat, 3 Dec 2022 15:25:20 + > Cc: Texinfo > > The report was dir file corruption if install-info was interrupted. > > I've attempted to fix this issue by creating a temporary file with > mkstemp, and then renaming it. I've added the Gnulib module for mkstemp > as

Re: install-info can "corrupt" dir file if interrupted.

2022-12-03 Thread Gavin Smith
Link to archived discussion: https://lists.gnu.org/archive/html/bug-texinfo/2015-11/msg00031.html On Fri, Nov 20, 2015 at 02:23:36PM -0800, Pedrum Mohageri wrote: > > Can you point to an explanation or example of how to update a file > > without the risk of truncation? It would seem that there's

Re: Bug in stand-alone Info reader

2022-12-03 Thread Gavin Smith
On Sat, Dec 03, 2022 at 01:45:31PM +0200, Eli Zaretskii wrote: > > > > > > I've observed this on Ubuntu, SLES, and RedHat. > > > > Thanks for the report. It should be fixed in commit e114ca3745. > > I believe you meant commit edff3e5615, right? Yes, that is right.

Re: Bug in stand-alone Info reader

2022-12-03 Thread Eli Zaretskii
> From: Gavin Smith > Date: Fri, 2 Dec 2022 22:46:43 + > Cc: "bug-texinfo@gnu.org" > > On Fri, Dec 02, 2022 at 09:02:04PM +, LaPolla, Justin Anthony wrote: > > I found a bug in the stand-alone Info reader. To reproduce: > > > > Open any file in info. For example, 'info gcc'. > > >