Bug 74925

Summary: long section names (Solaris) are not recognised
Product: [Frameworks and Libraries] kio Reporter: Jonathan Marten <jjm>
Component: manAssignee: Stephan Kulow <coolo>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:
Attachments: Long section names fix

Description Jonathan Marten 2004-02-11 09:49:44 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
OS:          Solaris

Long section names in Solaris man pages, such as connect(3SOCKET) or volfs(7FS) are not recognised or hyperlinked in a man page display. The man2html converter only accepts a maximum of 2 characters within the parentheses, and only the 'digit' or 'digit+letter' format.

The attached patch fixes this to accept any string of letters and digits between the brackets.  With this applied, man page names such as the above are correctly recognised and turned into hyperlinks. (There seems to be a fix already done below, in the section starting 'if (isalnum(*h))', to collect and output a link to such a page correctly, but it is of no use because the test above always fails).

This problems was raised a long time ago in 45309.  However, that bug report includes a lot of other fixes, some of which have now been addressed and the others would probably be impossible to patch into current sources since they have moved on so much.  Suggest that 45309 is closed as WONTFIX and I'll submit separate patches for anything remaining.
Comment 1 Jonathan Marten 2004-02-11 09:50:45 UTC
Created attachment 4633 [details]
Long section names fix
Comment 2 Stephan Kulow 2004-02-11 09:54:44 UTC

*** This bug has been marked as a duplicate of 45309 ***