Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 917974

Summary: Texinfo 5 regression, with patch
Product: [Fedora] Fedora Reporter: Mat Booth <mat.booth>
Component: texinfoAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: pertusus, vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: texinfo-5.0-3.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-05 14:08:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 914392    
Attachments:
Description Flags
Patrice's patch. none

Description Mat Booth 2013-03-05 08:24:50 UTC
Created attachment 705327 [details]
Patrice's patch.

Using texinfo-5.0-2.fc19.x86_64

When building the manual for the pp3 package, the call to makeinfo fails with the following message:

$ makeinfo --html --enable-encoding --no-split  pp3.texi
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
You found a bug: context rawpreformatted instead of line or def

Additional informations:
last location: pp3.texi:537
context_stack: (_root rawpreformatted rawpreformatted line rawpreformatted)
current: (misc_line_arg) :   contents(3)
 <- @cindex
Died at /usr/share/texinfo/Texinfo/Parser.pm line 1667.


Steps to Reproduce:
1. Install texinfo-5.0-2.fc19.x86_64
2. Create a "test.texi" file containing, on a single line:
@cindex @tex
3. Run "makeinfo --html --enable-encoding --no-split  test.texi"

This works fine with Texinfo 4, of course.

I have discussed this upstream: http://lists.gnu.org/archive/html/help-texinfo/2013-03/msg00001.html

And it appears that it is a bug in texinfo. I have attached a patch to fix the problem written by Patrice Dumas (pertusus). It has already been committed by Patrice in upstream's SVN r5220: http://svn.savannah.gnu.org/viewvc/trunk/tp/Texinfo/Parser.pm?root=texinfo&r1=5220&r2=5219&pathrev=5220

Comment 1 Vitezslav Crhonek 2013-03-05 14:09:39 UTC
Thanks for report. Should be fixed in texinfo-5.0-3.fc19.