From f31d618b49759007a9435c00301bbbdfd668dd6d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 13 Apr 2012 14:06:31 +0200 Subject: Remove utf8 decoding. --- client/luapraxisd.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'client') 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); } -- cgit v1.2.3