summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-04-13 14:06:31 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-04-13 14:06:31 +0200
commitf31d618b49759007a9435c00301bbbdfd668dd6d (patch)
treecc66e4dc96eb0d5df9ab9cf9115f933f053a9199 /client
parent12cce7eac519786066003173ab072505f2ad8bb0 (diff)
Remove utf8 decoding.
Diffstat (limited to 'client')
-rw-r--r--client/luapraxisd.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/luapraxisd.cc b/client/luapraxisd.cc
index 974a706..00ed961 100644
--- a/client/luapraxisd.cc
+++ b/client/luapraxisd.cc
@@ -72,7 +72,9 @@ static int px_getcave(lua_State *L)
int top = lua_gettop(L);
for(int i = 0; i < cavelist.size(); i++) {
- lua_pushstring(L, QString::fromUtf8(cavelist[i].toStdString().c_str()).toStdString().c_str());
+ QString c = cavelist[i];
+ DEBUG(cavelist, "CAVE '%s'\n", c.toStdString().c_str());
+ lua_pushstring(L, c.toStdString().c_str());
lua_rawseti(L, top, i);
}
@@ -96,7 +98,9 @@ static int px_cavelist(lua_State *L)
int top = lua_gettop(L);
for(size_t i = 0; i < (size_t)cavelist.size(); i++) {
- lua_pushstring(L, QString::fromUtf8(cavelist[i].cave.toStdString().c_str()).toStdString().c_str());
+ QString c = cavelist[i].cave;
+ DEBUG(cavelist, "CAVE '%s'\n", c.toStdString().c_str());
+ lua_pushstring(L, c.toStdString().c_str());
lua_rawseti(L, top, i);
}