Please sign in to comment.
MumbleApplication: introduce getenvQString and use it in applicationV…
…ersionRoot. When built against the MSVC2015 CRT, we can't mix-and-match non-wide and wide environment variables anymore. Prior to this commit, MumbleApplication::applicationVersionRoot() used Qt's qgetenv(). However, because of our change to MSVC2015, we can't use Qt's function anymore. Instead, we introduce getenvQString (a static function, local to MumbleApplication -- for now). This function uses _wgetenv_s on Windows to retrieve environment variables (expecting that they're all UTF-16). On non-Windows systems, it uses getenv (and expects keys and values to be UTF-8). Fixes #2806
- Loading branch information...