diff runner/JAMSFeatureWriter.cpp @ 189:089f1a13963d

Require (and provide) text codec for output stream -- fixing #1153 (wrong codec used when writing RDF)
author Chris Cannam
date Mon, 02 Mar 2015 17:17:59 +0000
parents 3536342ac088
children bb295c0feb3e
line wrap: on
line diff
--- a/runner/JAMSFeatureWriter.cpp	Wed Feb 25 10:20:17 2015 +0000
+++ b/runner/JAMSFeatureWriter.cpp	Mon Mar 02 17:17:59 2015 +0000
@@ -23,6 +23,7 @@
 #include "rdf/PluginRDFIndexer.h"
 
 #include <QFileInfo>
+#include <QTextCodec>
 
 #include "version.h"
 
@@ -97,7 +98,8 @@
 {
     QString transformId = transform.getIdentifier();
 
-    QTextStream *sptr = getOutputStream(trackId, transformId);
+    QTextStream *sptr = getOutputStream
+        (trackId, transformId, QTextCodec::codecForName("UTF-8"));
     if (!sptr) {
         throw FailedToOpenOutputStream(trackId, transformId);
     }