diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-04-13 14:06:31 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-04-13 14:06:31 +0200 |
commit | f31d618b49759007a9435c00301bbbdfd668dd6d (patch) | |
tree | cc66e4dc96eb0d5df9ab9cf9115f933f053a9199 | |
parent | 12cce7eac519786066003173ab072505f2ad8bb0 (diff) |
Remove utf8 decoding.
-rw-r--r-- | client/luapraxisd.cc | 8 |
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); } |