From 0718e2b0f7b0fcdb522b8654f0b315495380c6f7 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 10 Mar 2013 15:14:13 +0000 Subject: [PATCH] Candidate fix for bug 1055. Needs validation however! --- src/Navaids/NavDataCache.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Navaids/NavDataCache.cxx b/src/Navaids/NavDataCache.cxx index d2ac4290e..86f292662 100644 --- a/src/Navaids/NavDataCache.cxx +++ b/src/Navaids/NavDataCache.cxx @@ -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);