summaryrefslogtreecommitdiffstats
path: root/src/rtfgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-06-04 14:15:23 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-06-04 14:15:23 (GMT)
commite90eb41e09adeb8970ef9a64fb8f163f068d7b17 (patch)
tree431650e77325cdf55ef9e710fd0ac1a9d87d3486 /src/rtfgen.cpp
parentcd76bda7e377a14bd6b3d321425cf462a46a3f75 (diff)
downloadDoxygen-e90eb41e09adeb8970ef9a64fb8f163f068d7b17.zip
Doxygen-e90eb41e09adeb8970ef9a64fb8f163f068d7b17.tar.gz
Doxygen-e90eb41e09adeb8970ef9a64fb8f163f068d7b17.tar.bz2
Release-1.2.8
Diffstat (limited to 'src/rtfgen.cpp')
-rw-r--r--src/rtfgen.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp
index 8a8c31f..9e2213e 100644
--- a/src/rtfgen.cpp
+++ b/src/rtfgen.cpp
@@ -565,6 +565,10 @@ static void loadStylesheet(const char *name, QDict<StyleData>& dict)
static const QRegExp separator("[ \t]*=[ \t]*");
uint lineNr=1;
QTextStream t(&file);
+#if QT_VERSION >= 200
+ t.setEncoding(QTextStream::Latin1);
+#endif
+
while (!t.eof())
{
QCString s(4096); // string buffer of max line length
@@ -663,6 +667,10 @@ static void loadExtensions(const char *name)
static const QRegExp separator("[ \t]*=[ \t]*");
uint lineNr=1;
QTextStream t(&file);
+#if QT_VERSION >= 200
+ t.setEncoding(QTextStream::Latin1);
+#endif
+
while (!t.eof())
{
QCString s(4096); // string buffer of max line length
@@ -1806,7 +1814,8 @@ void RTFGenerator::endMemberDoc()
newParagraph();
}
-void RTFGenerator::startDoxyAnchor(const char *,const char *,const char *)
+void RTFGenerator::startDoxyAnchor(const char *,const char *,
+ const char *,const char *)
{
}
@@ -2593,6 +2602,9 @@ bool RTFGenerator::preProcessFileInplace(const char *path,const char *name)
return FALSE;
}
QTextStream outt(&outf);
+#if QT_VERSION >= 200
+ outt.setEncoding(QTextStream::Latin1);
+#endif
if (!PreProcessFile(thisDir,mainRTFName,outt))
{