bug-texinfo
[Top][All Lists]
Advanced

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

Re: (info-stnd) search.c:regexp_search() finishes too early


From: Gavin Smith
Subject: Re: (info-stnd) search.c:regexp_search() finishes too early
Date: Wed, 8 Jan 2014 17:08:44 +0000

On Tue, Jan 7, 2014 at 10:44 PM, Karl Berry <address@hidden> wrote:
> Hi,
>
>     the way the code is places the null character too
>     early if binding->start is not 0.
>
> Thanks for the report and patch.  Can you give a way (info file,
> specific search to run) to observe the failure, whatever it is?
>
I found this trying to use the function in a change to the code, which
doesn't show that there is problems in the code as it is. But I've
been able to get problems to occur with the code as it is.

If you have a manual for "viper", try running "info viper" and then
typing "slicense" followed by Enter. It will miss the occurrences of
"license" on the last line of Top.

I've attached a short test file. Try "info -f other.info" and
"smatch". Going through the matches with "}" it only goes to the first
and second matches.

I have tested it with info 4.13 and it works, but not with info 5.2.
In fact I don't think the patch I submitted above fixes the problem
properly as even with that I only get the first three matches.

Attachment: other.info
Description: Binary data


reply via email to

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