mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 07:35:38 +00:00
Use user locale at startup. Should fix Unicode paths on Windows.
This commit is contained in:
parent
c870caee03
commit
ac37765744
|
@ -18,6 +18,7 @@
|
|||
#include "Settings.h"
|
||||
#include "ScraperCmdLine.h"
|
||||
#include <sstream>
|
||||
#include <boost/locale.hpp>
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
|
@ -140,6 +141,9 @@ int main(int argc, char* argv[])
|
|||
unsigned int width = 0;
|
||||
unsigned int height = 0;
|
||||
|
||||
std::locale::global(boost::locale::generator().generate(""));
|
||||
boost::filesystem::path::imbue(std::locale());
|
||||
|
||||
if(!parseArgs(argc, argv, &width, &height))
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue