After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 688652 - [PATCH] Qt Help generator creates file with bad encoding
[PATCH] Qt Help generator creates file with bad encoding
Status: RESOLVED DUPLICATE of bug 681825
Product: doxygen
Classification: Other
Component: general
1.8.2
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-11-19 15:44 UTC by Matt Williams
Modified: 2012-11-19 18:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matt Williams 2012-11-19 15:44:05 UTC
After enabling GENERATE_QHP etc, Doxygen was creating an index.qhp. However, one of the fields was created badly causing garbage to make it into the qhp file like:

<QtHelpProject version="1.0">
  <namespace>com.volumesoffun.polyvox</namespace>
  <virtualFolder>api</virtualFolder>
  <filterSection>
    <filterAttribute>doxygen</filterAttribute>
    <toc>
      <section title="PolyVox 0.2.0" ref="`º^L^A">
        <section title="PolyVox Framework" ref="index.html" />

Notice the text inside the ref="`º^L^A" where it should be ref="index.html"

I tracked this down to line 128 of src/qhp.cpp where the ref for this section is created. It was using the following code:

const char * const attributes[] =
{ "title", fullProjectname,
  "ref",   QCString("index")+Doxygen::htmlFileExtension,
  NULL
};

For some reason, about 95% of the time this will cause the ref field to contain garbage.

By changing it to be:

QCString ref = QCString("index")+Doxygen::htmlFileExtension;
const char * const attributes[] =
{ "title", fullProjectname,
  "ref",   ref,
  NULL
};

it seems to have reliably fixed it.

I don't know why the original version didn't work but this new version fixes it for me.
Comment 1 Dimitri van Heesch 2012-11-19 18:57:36 UTC

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