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 564614 - RTF text encoding does not use codepage
RTF text encoding does not use codepage
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.5.7.1
Other Linux
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2008-12-15 14:11 UTC by gobi
Modified: 2011-08-14 14:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Minimal code produces error to create RTF documents in Japanese (2.70 KB, text/plain)
2008-12-17 07:01 UTC, gobi
Details
Small code + config + generated broken RTF (6.43 KB, application/octet-stream)
2008-12-17 07:12 UTC, gobi
Details
code + small config + generated rtf (6.64 KB, application/zip)
2009-02-24 15:56 UTC, Alexey Efimov
Details
code + small config + generated rtf (6.64 KB, application/zip)
2009-02-24 15:57 UTC, Alexey Efimov
Details

Description gobi 2008-12-15 14:11:53 UTC
When doxygen generates RTF it always generate text in UTF-8 encoding. It does not see the translator. By RTF spec RTF text must be charset encoded but everything gets UTF-8 and all text is broken in RTF.
Comment 1 gobi 2008-12-16 06:20:59 UTC
It looks I reported wrong this bug. I investigated some more and figured out that problem is different.

The problem is:

For example I am creating Japanese documentation. It looks that Doxygen internally convert input files to UTF-8. Afterward it converting to translator encoding then it calls postProcess virtual method of Generators. At this point RTF postProcess method works somehow wrong. At least in my case which is Japanese.

So I commented out postProcess call then RTF has got readable. Doxygen is finishing not clearly. However it generates RTF it finishes with this error log:

.....
Combining RTF output...
Error: RTF integrity test failed at line 3268 of /home/gobi/workspace/socnew/docs/rtf/refman.rtf due to a bracket mismatch.
       Please try to create a small code example that produces this error
       and send that to dimitri@stack.nl.
Comment 2 Dimitri van Heesch 2008-12-16 18:39:51 UTC
Can you attach a minimal example (source + config file in a zip) that allows me to reproduce the problem?
Comment 3 gobi 2008-12-17 07:01:29 UTC
Created attachment 124842 [details]
Minimal code produces error to create RTF documents in Japanese

When you produce japanese documentation from attached source you will receive following error and RTF won't be opened by either Open Office3.0 and MS Office.

---------------------------------------
Error: RTF integrity test failed at line 166 of /home/gobi/workspace/socnew/docs/rtf/refman.rtf due to a bracket mismatch.
       Please try to create a small code example that produces this error
       and send that to dimitri@stack.nl.
Comment 4 gobi 2008-12-17 07:12:52 UTC
Created attachment 124844 [details]
Small code + config + generated broken RTF

OK, I A attached very small code + configuration + generated RTF with error. 

Thank you.
Comment 5 Dimitri van Heesch 2008-12-25 11:40:49 UTC
I can reproduce the integrity warning with version 1.5.7.1, but is has disappeared in my working version, so please check if the problem is gone in the next official release.
Comment 6 Alexey Efimov 2009-02-24 15:36:30 UTC
I have a same problem in version 1.5.8 running on Windows XP SP3.
I want generate russian documentation in RTF format but have error message:

Combining RTF output...
Error: RTF integrity test failed at line 246 of Z:/prcg_doc2/rtf/refman.rtf due to a bracket mismatch.

I've checked some of OUTPUT_LANGUAGE values, and got the same results for Chinese, Greek, Hungarian, Japanese, Russian, Ukrainian languages etc.
Comment 7 Alexey Efimov 2009-02-24 15:56:00 UTC
Created attachment 129413 [details]
code + small config + generated rtf

Attached a code example, small config file and produced rtf doc.
Comment 8 Alexey Efimov 2009-02-24 15:57:13 UTC
Created attachment 129414 [details]
code + small config + generated rtf

Attached a code example, small config file and produced rtf doc.
Comment 9 Dimitri van Heesch 2011-08-07 07:47:53 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 10 Dimitri van Heesch 2011-08-14 14:05:31 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.5. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.