1
0
Fork 0

Candidate fix for bug 1055. Needs validation however!

This commit is contained in:
James Turner 2013-03-10 15:14:13 +00:00
parent 67a0acb64a
commit 0718e2b0f7

View file

@ -213,7 +213,11 @@ public:
void init()
{
SG_LOG(SG_NAVCACHE, SG_INFO, "NavCache at:" << path);
sqlite3_open_v2(path.c_str(), &db,
// see http://code.google.com/p/flightgear-bugs/issues/detail?id=1055
// for the logic here. Sigh.
std::string pathUtf8 = simgear::strutils::convertWindowsLocal8BitToUtf8(path.str());
sqlite3_open_v2(pathUtf8.c_str(), &db,
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL);