summaryrefslogtreecommitdiff
path: root/gui/handlers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/handlers.cpp')
-rw-r--r--gui/handlers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/handlers.cpp b/gui/handlers.cpp
index 71e5d38..4910aa2 100644
--- a/gui/handlers.cpp
+++ b/gui/handlers.cpp
@@ -8,7 +8,9 @@
GoString toGoStr(QString s)
{
- char *c = s.toLocal8Bit().data();
+ // TODO verify that it's more correct
+ // char *c = s.toLocal8Bit().data();
+ const char *c = s.toUtf8().constData();
return (GoString){c, (long int)strlen(c)};
}