]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/annotation.cpp
Handle C-strings as UTF-8
[pulseview.git] / pv / data / decode / annotation.cpp
index 6a30921e71deec541a7e8e929bcdf13e8ead1fa4..e17dcb5177cd73ab818d31e08a8c84d60133df15 100644 (file)
@@ -43,7 +43,7 @@ Annotation::Annotation(const srd_proto_data *const pdata) :
 
        const char *const *annotations = (char**)pda->ann_text;
        while(*annotations) {
-               _annotations.push_back(QString(*annotations));
+               _annotations.push_back(QString::fromUtf8(*annotations));
                annotations++;
        }
 }