GNOME Bugzilla – Bug 564614
RTF text encoding does not use codepage
Last modified: 2011-08-14 14:05:31 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.
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.
Can you attach a minimal example (source + config file in a zip) that allows me to reproduce the problem?
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.
Created attachment 124844 [details] Small code + config + generated broken RTF OK, I A attached very small code + configuration + generated RTF with error. Thank you.
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.
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.
Created attachment 129413 [details] code + small config + generated rtf Attached a code example, small config file and produced rtf doc.
Created attachment 129414 [details] code + small config + generated rtf Attached a code example, small config file and produced rtf doc.
Confirmed. Should be fixed in the next subversion update.
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.