This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[doc] fix broken anchor in install.texi


I want to commit the attached patch to install.texi, but have been
unable to test it successfully.

The problem is that the link for "x86_64-*-solaris2.1[0-9]*" in the
Host/Target Specific notes is
http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
but the corresponding anchor is:
<a name="x86-64-x-solaris2_002e10">

Note the "_002e" difference, which is caused by the texinfo uref being:
@uref{#x86-64-x-solaris210,,x86_64-*-solaris2.1[0-9]*}
but the anchor target having an extra dot:
@anchor{x86-64-x-solaris2.10}

My patch removes that dot.

I tried to test it by regenerating the HTML docs (using
texinfo-4.13a-15 from Fedora 15), but I get different results: the dot
is gone as expected, but every hyphen gets expanded to _002d, so none
of the anchors work!

I'm pretty sure the patch is correct but will check the link in the
GCC onlinedocs once they're regenerated.

OK to commit?

2011-10-04  Jonathan Wakely  <jwakely.gcc@gmail.com>

        * doc/install.texi (Specific): Fix anchor for
        x86_64-*-solaris2.1[0-9]*

Attachment: install.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]