Candidate fix for bug 1055. Needs validation however!
This commit is contained in:
parent
67a0acb64a
commit
0718e2b0f7
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue