1
0
Fork 0

options: use fromLocal8Bit for --download-dir and --aircraft-dir

This commit is contained in:
Rebecca N. Palmer 2016-10-29 16:31:08 +01:00
parent 94d96c56cd
commit 194a6f8974

View file

@ -2088,7 +2088,7 @@ void Options::initAircraft()
}
if (isOptionSet("aircraft-dir")) {
SGPath aircraftDirPath(valueForOption("aircraft-dir"));
SGPath aircraftDirPath = SGPath::fromLocal8Bit(valueForOption("aircraft-dir").c_str());
// Set this now, so it's available in FindAndCacheAircraft. Use realpath()
// as in FGGlobals::append_aircraft_path(), otherwise fgValidatePath()
@ -2376,7 +2376,7 @@ OptionResult Options::processOptions()
}
// download dir fix-up
SGPath downloadDir = SGPath::fromUtf8(valueForOption("download-dir"));
SGPath downloadDir = SGPath::fromLocal8Bit(valueForOption("download-dir").c_str());
if (downloadDir.isNull()) {
downloadDir = defaultDownloadDir();
SG_LOG(SG_GENERAL, SG_INFO, "Using default download dir: " << downloadDir);