# HG changeset patch # User Chris Cannam # Date 1528455184 -3600 # Node ID a558a3fb44fc85dd8025b35c3ee133d850986e7a # Parent 7da68349a0c5eb79ded55ebe309cea07af108f1b Use wide-char env variable lookup diff -r 7da68349a0c5 -r a558a3fb44fc framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Tue May 15 11:11:49 2018 +0100 +++ b/framework/MainWindowBase.cpp Fri Jun 08 11:53:04 2018 +0100 @@ -73,6 +73,8 @@ #include "data/osc/OSCQueue.h" #include "data/midi/MIDIInput.h" +#include "system/System.h" + #include #include #include @@ -3996,8 +3998,11 @@ process->start("open", args); #else #ifdef Q_OS_WIN32 - QString pf(getenv("ProgramFiles")); - QString command = pf + QString("\\Internet Explorer\\IEXPLORE.EXE"); + std::string pfiles; + (void)getEnvUtf8("ProgramFiles", pfiles); + QString command = + QString::fromStdString(pfiles) + + QString("\\Internet Explorer\\IEXPLORE.EXE"); args.append(url); process->start(command, args);