Skip to content

Commit

Permalink
Allow installing packages with non-Latin names (Mudlet#1500)
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 authored Dec 31, 2017
1 parent 64de720 commit 4029df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ void Host::readPackageConfig(const QString& luaConfig, QString& packageName)
lua_State* L = luaL_newstate();
luaL_openlibs(L);

int error = luaL_loadstring(L, strings.join("\n").toLatin1().data());
int error = luaL_loadstring(L, strings.join("\n").toUtf8().constData());

if (!error) {
error = lua_pcall(L, 0, 0, 0);
Expand Down

0 comments on commit 4029df3

Please sign in to comment.